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