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