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