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 km = 4; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 3 (b) line 2 (c) line 1 -
2.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 310; // typed by the user
line 2: let off = 30; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 3 (b) line 2 (c) line 1 (d) line 4 -
3.⚙️ What number does this app show?
let price = 70; // typed by the user
let qty = 5; // typed by the user
let total = price * qty;
show(total); - 4.True or false: a buzz (vibration) is an input. (a) False (b) True
- 5.Which of these is an output? (a) tapping a button (b) working out a tip (c) speaking a command (d) a result on screen
-
6.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 330; // typed by the user
line 2: let friends = 5; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 1 (b) line 4 (c) line 3 (d) line 2 - 7.Which of these is processing? (a) working out a tip (b) a pop-up message (c) taking a photo (d) a result on screen
-
8.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 7; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 3 (b) line 2 (c) line 1 -
9.⚙️ What number does this app show?
let bill = 150; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); -
10.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 90; // typed by the user
line 2: let qty = 6; // 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 -
11.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 15; // typed by the user
line 2: let qty = 3; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 4 (b) line 1 (c) line 2 (d) line 3 - 12.⚙️ In an app, is tapping a button an input, processing or an output? (a) input (b) processing (c) output
- 13.True or false: a buzz (vibration) is an output. (a) False (b) True
- 14.Which of these is an output? (a) tapping a button (b) typing your age (c) speaking a command (d) a beep sound
-
15.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 55; // typed by the user
line 2: let qty = 3; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 1 (b) line 2 (c) line 4 (d) line 3 - 16.True or false: checking a password is processing. (a) False (b) True
- 17.Which of these is an output? (a) speaking a command (b) working out a tip (c) a pop-up message (d) typing your age
- 18.Which of these is processing? (a) taking a photo (b) a beep sound (c) sorting the scores (d) a buzz (vibration)
-
19.⚙️ What number does this app show?
let price = 170; // typed by the user
let off = 30; // typed by the user
let pay = price - off;
show(pay); - 20.🔍 Which is the odd one out? (a) checking a password (b) a beep sound (c) sorting the scores (d) working out a tip
-
21.⚙️ What number does this app show?
let bill = 147; // typed by the user
let friends = 3; // typed by the user
let share = bill / friends;
show(share); - 22.🔍 Which is the odd one out? (a) adding up a bill (b) typing your age (c) taking a photo (d) speaking a command
-
23.⚙️ 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 1 (c) line 4 (d) line 3 -
24.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 14; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 3 (b) line 1 (c) line 2 - 25.⚙️ In an app, is sorting the scores an input, processing or an output? (a) output (b) processing (c) input
-
26.⚙️ What number does this app show?
let bill = 195; // typed by the user
let friends = 5; // typed by the user
let share = bill / friends;
show(share); - 27.True or false: working out a tip is processing. (a) False (b) True
-
28.⚙️ What number does this app show?
let bill = 68; // typed by the user
let friends = 4; // typed by the user
let share = bill / friends;
show(share); - 29.Which of these is an input? (a) sorting the scores (b) a result on screen (c) a buzz (vibration) (d) speaking a command
- 30.True or false: adding up a bill is an input. (a) True (b) False
- 31.True or false: sorting the scores is an output. (a) False (b) True
- 32.True or false: typing your age is processing. (a) True (b) False
- 33.🔍 Which is the odd one out? (a) a result on screen (b) tapping a button (c) a pop-up message (d) a buzz (vibration)
-
34.⚙️ What number does this app show?
let price = 55; // typed by the user
let qty = 6; // typed by the user
let total = price * qty;
show(total); - 35.Which of these is an input? (a) tapping a button (b) a buzz (vibration) (c) working out a tip (d) a result on screen
-
36.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 20; // typed by the user
line 2: let qty = 3; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 2 (b) line 1 (c) line 4 (d) line 3 - 37.True or false: adding up a bill is processing. (a) False (b) True
-
38.⚙️ What number does this app show?
let price = 60; // typed by the user
let qty = 4; // typed by the user
let total = price * qty;
show(total); - 39.True or false: a result on screen is processing. (a) True (b) False
- 40.⚙️ In an app, is taking a photo an input, processing or an output? (a) output (b) processing (c) input
Answer key
- line 2
- line 3
- 350
- False
- a result on screen
- line 3
- working out a tip
- line 2
- 75
- line 3
- line 3
- input
- True
- a beep sound
- line 3
- True
- a pop-up message
- sorting the scores
- 140
- a beep sound
- 49
- adding up a bill
- line 3
- line 2
- processing
- 39
- True
- 17
- speaking a command
- False
- False
- False
- tapping a button
- 330
- tapping a button
- line 3
- True
- 240
- False
- input
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students