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