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