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