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