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