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