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