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