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