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