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