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