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