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