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