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