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