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