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