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