The correct option is D Neither shape nor size of the solid
The density of a substance does not change with any change in its shape or size. This is because a change in either of them does not bring about a change in the ratio of mass and volume of the body.
Density = Mass/VolumeTherefore, density of any body can only be changed by a change in the mass of the body when the volume is unchanged, or by a change in the volume of the body when the mass is unchanged.