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