A hypothesis is is a supposed explanation made before starting an experiment and a theory is a system of ideas intend to explain something. They are both used in experiments to help explain things. <span />
It gives the reader a notice about what the text it is a about. This could be to see if the reader of the text is interested in the text. Sub headings gives the reader a notice about what the reader will find in that part of the text.