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