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