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