Final answer:
Gases in lava produce bubbles. These gas bubbles become trapped as the lava solidifies, creating holes in the resulting rock.
Step-by-step explanation:
Gases in lava produce bubbles.When lava is molten, it contains dissolved gases, such as water vapor, carbon dioxide, and sulfur dioxide.
When the lava erupts onto the surface and cools down, the pressure on the gases decreases, causing them to come out of the molten rock and form bubbles. These gas bubbles become trapped as the lava solidifies, creating holes in the resulting rock.