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