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