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