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