Step-by-step explanation:
Density is defined as the mass of the substance present in the unit volume of the substance.

- When a substance is immersed in the liquid with density greater than that of the substance. Then the substance will float on the liquid.
- When a substance is immersed in the liquid with density lower than that of the substance. Then the substance will sink in the liquid
So, when the rock is immersed in the water the it sank because the density if the rock is greater than the density of water.
Where as wooden block float in the water because the density of the wooden block is less then the density of the water.