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