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