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