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