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