Final answer:
As a star evolves into a red giant, its core contracts and heats while the outer layers expand and cool.
Step-by-step explanation:
As a star like the Sun evolves into a red giant, its core contracts and heats. The outer layers of the star, however, expand and cool. This causes the star to become larger, redder, and more luminous as it expands and cools over time. So, the correct answer is contracts and heats.