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