Final answer:
The thoracic cavity has two separate sections known as the pleural cavity and the mediastinum.
Step-by-step explanation:
The body cavity that has two separate sections known as the pleural and mediastinum is the thoracic cavity. The pleural cavity encompasses the area around the lungs, whereas the mediastinum contains the area in the central thorax, which includes the pericardial cavity – the space that encloses the heart.
The thoracic cavity itself is a subdivision of the ventral cavity and is located superior to the abdominopelvic cavity, from which it is separated by the diaphragm.