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