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