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