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