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