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