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