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