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