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