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