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