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