How to write theory answers for university exams?

Difficulty in structuring answers with headings, subheadings, and diagrams.

What are your strategies to write subjective answers?