Here's a problem to solve: What is the major process of surface rock formation on volcanoes?

Among the 4 following options, which is the correct answer?

- A: Rock cools quickly from melted rock.
 
- B: Rock is recrystallized by extreme pressure.
 
- C: Rock solidifies slowly deep underground.
 
- D: Rock is formed from deposited sediment.
 