The molecule having a formyl group is:
A formyl functional group consists of a carbonyl carbon which is bonded to a hydrogen atom.When this carbonyl carbon is attached to an R group, that formyl group is called an aldehyde.
Here in the given example R group is CH3− group. So acetaldehyde consists of formyl group.
Hence option B is correct.