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