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