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