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