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