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