Which of the following statements is the best description of the life cycle of plants such as ferns?