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