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