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