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