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