What is the purpose of a Table of Contents?

to summarize the main ideas of a text
to demonstrate the length of a text
to examine the sections of a larger text
to show the location of major sections of a text