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