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