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