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