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