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