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