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