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