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