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