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