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