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