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