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