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