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