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