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