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