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