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