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