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