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