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