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