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