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