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