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