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