Answer:
hereditary only: DNA replication, anaphase I,II and metaphase II.
genetic variation only: crossing over, -metaphase 1
both: fertilization
Explanation:
hereditary only: DNA is only copied to have enough for the daughter cells.
Anaphase I, II chromosomes are moving to be inherit to daughter cells.
Metaphase II chromosomes were sorted randomly during metaphase I and will only line up to move to each daughter cell.
Genetic variation only: during crossing over chromosomes exchange information which accounts for DNA variability.
During metaphase I random assortment of chromosomes will create variability too.
Both: during fertilization the newly formed zygote contains different information from both parents (genetic variation), and this information is passed onto the next generation.