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