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