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