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