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