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