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