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