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