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