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