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