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