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