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