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