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