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