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