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