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