Question: what are the stages of the life cycle of a star?
Answer: As the core collapses, the outer layers of the star are expelled. A planetary nebula is formed by the outer layers. The core remains as a white dwarf and eventually cools to become a black dwarf. On the right of the illustration is the life cycle of a massive star (10 times or more the size of our Sun).