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