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