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