Final answer:
a. Support the roof rafters and prevent sagging. Knee walls perform the function of supporting the roof rafters and preventing sagging.
Step-by-step explanation:
Knee walls perform the function of supporting the roof rafters and preventing sagging. They are short walls that are positioned in the vertical space beneath the sloping roof. These walls run parallel to the rafters and help distribute the weight of the roof evenly, providing support and stability. Without knee walls, there would be a risk of the roof sagging and potential collapse.