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