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