The correct answer is (D) granite, which forms as magma cools deep underground.
Obsidian is an extrusive igneous rock that forms when lava cools quickly at the Earth's surface, resulting in its glassy texture. Granite, on the other hand, is an intrusive igneous rock that forms when magma cools slowly beneath the Earth's surface, allowing larger crystal structures to develop. Therefore, granite forms in a similar manner as obsidian, but at a slower rate.