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