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