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