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