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