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