The correct explanation for how temperature can lead to the weathering of rocks is:
Rocks expand and contract when they are heated and cooled, which causes them to break.
This process, known as thermal expansion and contraction, occurs because different minerals within the rock can expand and contract at different rates when temperatures change. Over time, repeated cycles of heating and cooling can weaken the rock structure, leading to cracks and eventually breaking apart. This is a physical weathering process.