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