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