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