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