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