App Dev Worksheet: Input, Processing, Output
Developer's tip (In, work, out): Input → processing → output. Input: typing, tapping, a photo, your voice. Output: a result on screen, a sound, a buzz, a pop-up. In code, the processing line works out a new value from the inputs; show() is the output.
NameDateTime takenScore ___ / 40
-
1.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 460; // typed by the user
line 2: let off = 10; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 3 (b) line 1 (c) line 4 (d) line 2 -
2.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 11; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 3 (b) line 2 (c) line 1 - 3.Which of these is an output? (a) taking a photo (b) adding up a bill (c) a result on screen (d) speaking a command
- 4.Which of these is processing? (a) typing your age (b) sorting the scores (c) tapping a button (d) a beep sound
- 5.True or false: a buzz (vibration) is processing. (a) True (b) False
-
6.⚙️ What number does this app show?
let km = 9; // typed by the user
let metres = km * 1000;
show(metres); -
7.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 10; // typed by the user
line 2: let qty = 2; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 2 (b) line 4 (c) line 3 (d) line 1 -
8.⚙️ What number does this app show?
let bill = 72; // typed by the user
let friends = 3; // typed by the user
let share = bill / friends;
show(share); - 9.Which of these is processing? (a) a buzz (vibration) (b) typing your age (c) a pop-up message (d) checking a password
-
10.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 350; // typed by the user
line 2: let off = 20; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 2 (b) line 1 (c) line 3 (d) line 4 -
11.⚙️ What number does this app show?
let km = 11; // typed by the user
let metres = km * 1000;
show(metres); - 12.True or false: sorting the scores is processing. (a) False (b) True
- 13.Which of these is processing? (a) typing your age (b) working out a tip (c) a result on screen (d) a pop-up message
- 14.⚙️ In an app, is tapping a button an input, processing or an output? (a) processing (b) input (c) output
- 15.⚙️ In an app, is sorting the scores an input, processing or an output? (a) output (b) input (c) processing
-
16.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 440; // typed by the user
line 2: let off = 50; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 3 (b) line 1 (c) line 2 (d) line 4 - 17.🔍 Which is the odd one out? (a) taking a photo (b) checking a password (c) tapping a button (d) speaking a command
- 18.🔍 Which is the odd one out? (a) working out a tip (b) speaking a command (c) typing your age (d) tapping a button
- 19.⚙️ In an app, is a beep sound an input, processing or an output? (a) processing (b) input (c) output
- 20.⚙️ In an app, is speaking a command an input, processing or an output? (a) input (b) processing (c) output
- 21.Which of these is an output? (a) working out a tip (b) a beep sound (c) speaking a command (d) sorting the scores
-
22.⚙️ What number does this app show?
let price = 50; // typed by the user
let qty = 5; // typed by the user
let total = price * qty;
show(total); -
23.⚙️ What number does this app show?
let km = 5; // typed by the user
let metres = km * 1000;
show(metres); - 24.True or false: a pop-up message is an output. (a) True (b) False
-
25.⚙️ What number does this app show?
let km = 7; // typed by the user
let metres = km * 1000;
show(metres); - 26.True or false: checking a password is an output. (a) False (b) True
-
27.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 86; // typed by the user
line 2: let friends = 2; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 2 (b) line 3 (c) line 4 (d) line 1 -
28.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 13; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 2 (b) line 1 (c) line 3 - 29.🔍 Which is the odd one out? (a) a beep sound (b) a pop-up message (c) typing your age (d) a buzz (vibration)
-
30.⚙️ What number does this app show?
let bill = 213; // typed by the user
let friends = 3; // typed by the user
let share = bill / friends;
show(share); -
31.⚙️ What number does this app show?
let price = 70; // typed by the user
let qty = 3; // typed by the user
let total = price * qty;
show(total); - 32.True or false: a beep sound is an input. (a) False (b) True
- 33.⚙️ In an app, is checking a password an input, processing or an output? (a) input (b) output (c) processing
-
34.⚙️ What number does this app show?
let km = 8; // typed by the user
let metres = km * 1000;
show(metres); - 35.⚙️ In an app, is working out a tip an input, processing or an output? (a) input (b) output (c) processing
-
36.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 100; // typed by the user
line 2: let friends = 2; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 2 (b) line 1 (c) line 4 (d) line 3 -
37.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 92; // typed by the user
line 2: let friends = 4; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 2 (b) line 1 (c) line 3 (d) line 4 - 38.Which of these is an input? (a) checking a password (b) a buzz (vibration) (c) a pop-up message (d) tapping a button
- 39.🔍 Which is the odd one out? (a) a result on screen (b) tapping a button (c) a pop-up message (d) a buzz (vibration)
- 40.True or false: working out a tip is an output. (a) False (b) True
Answer key
- line 3
- line 2
- a result on screen
- sorting the scores
- False
- 9000
- line 3
- 24
- checking a password
- line 3
- 11000
- True
- working out a tip
- input
- processing
- line 3
- checking a password
- working out a tip
- output
- input
- a beep sound
- 250
- 5000
- True
- 7000
- False
- line 3
- line 2
- typing your age
- 71
- 210
- False
- processing
- 8000
- processing
- line 3
- line 3
- tapping a button
- tapping a button
- False
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students