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