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