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