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