Final answer:
The heart is located in the thoracic cavity, which is above the abdominopelvic cavity and enclosed by the rib cage.
Step-by-step explanation:
The heart is located within the thoracic cavity, which is a subdivision of the anterior (ventral) cavity. This cavity is enclosed by the rib cage and contains not only the heart, which is situated in the mediastinum, but also the lungs. The diaphragm separates the thoracic cavity from the abdominopelvic cavity below, which consists of the abdominal cavity and the pelvic cavity, housing the digestive and reproductive organs respectively. Therefore, the correct answer to the question of where the heart is located is D) Thoracic.