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