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