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