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