The correct answer is that ferns have two part in their life cycle: Diploid phase and haploid phase
The life cycle of a fern has two parts: sporophyte stage and gametophyte stage. The gametophyte stage of ferns are haploid which releases gametes and the sporophyte stage are diploid that produces spores. This kind of life cycle is known as the "alternation of generation".
Heterotrophs hope this helps.