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