The correct option is C Pupa
Cocoon is formed in the pupal stage of metamorphosis. This stage occurs after the caterpillar stage. When the caterpillar is fully grown it stops eating and becomes a pupa. The characteristic feature of the pupa stage is the development of a protective, hard covering that surrounds the insect, this surrounding protective coat is called a cocoon.