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