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