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