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