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