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