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