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