magma can be classified in two ways. when it is inside the volcano it is called magma, but when it is out of the volcano it is called lava or such as :
basalt, ashes, obsidian. magma is also called the names that have been listed because magma and lava are pretty much the same thing just magma is inside the volcano and lava is outside... hope this help you