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