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