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