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