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