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