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