The answer is C) the density of the rock
Density of rock is the dependent variable, because it depends on the temperature. The temperature can’t be the dependent variable because ,the density of a rock does not have magical powers that can change temperature of a room. However changing the temperature of the room ,will change the density of the rock. Hope this helps !