The correct option is D germination of a megaspore
In gymnosperms, the endosperm is formed in the ovule during germination of the megaspore. It consequently becomes the female prothallus (gametophyte), with a haploid set of chromosomes.
The archegonia in gynosperms develop from certain cells of the endosperm.
In angiosperms, the endosperm is formed after fertilization as a result of the fusion of male gamete with the secondary (diploid) nucleus of the embryo sac.