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