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