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