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