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