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