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