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