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