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