The correct option is B Diagram
Defining unsaturated hydrocarbon:
Unsaturated hydrocarbons are the
compounds containing only C, and there is either C=C or C≡C bond or both
in the structure.
Analysing the options:
Options (A) and (B):
The compounds given in options (A) and (B) are unsaturated, but not hydrocarbons. This is because they contain oxygen and nitrogen atoms respectively along with carbon and hydrogen.
Diagram
Option (c):
It is a saturated hydrocarbon because it contains only carbon-carbon single bonds.
Diagram
Option (d):
It is an unsaturated hydrocarbon because it contains only carbon and hydrogen atoms as well as C=C in its molecule.
Diagram
So, option (d) is the correct answer.