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