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