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