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