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