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