The correct answer is option C, that is, both the organisms generate haploid spores and exhibit diploid and haploid stages.
The sporophyte (of the haploid stage) in pteridophytes produce spores. The diploid stage in pteridophytes may take place when two of the spores combines and give rise to a prothallus, that is, the diploid stage of the pteridophytes.
In fungi, the production of spores takes place by sporangiophores (haploid stage). At a certain stage, two horizontal hyphae among the two species of fungi, may amalgamate at the tips and produce a zygote (diploid) via plasmogamy and karyogamy.