Step 1: Parent Chain
The longest carbon chain contains the aldehyde group (-CHO), which is given priority (C1).
Step 2: Numbering
Numbering from the -CHO group: C1 is CHO, C2 has a methyl group, C3 is part of a double bond, and C4 has a hydroxyl group.
Step 3: Substituents
- Hydroxyl at C4 (4-hydroxy)
- Methyl at C2 (2-methyl)
Step 4: Name Assembly
The base is pent-2-en-1-al. Combining everything: 4-hydroxy-2-methylpent-2-en-1-al.
Final Answer: (B)