The alternation of generations in plants involves both meiosis and mitosis. The life cycle of plants alternates between a gametophyte generation (which is usually haploid and produces gametes through mitosis) and a sporophyte generation (which is usually diploid and produces spores through meiosis).
Therefore, the correct answer is:
2. Both mitosis and meiosis