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