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