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