APA 7th Edition provides no guidelines for formatting a Table of Contents since this style guide is primarily used for journal article manuscripts where Tables of Contents are not required. Therefore, if an assignment requires a Table of Contents, it is the instructor's responsibility to make formatting expectations clear to students.
Below is an example of a standard Table of Contents for reference. Always consult your instructor for specific guidelines regarding the Table of Contents for your assignments.