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