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