Answer : Thermal energy depends on the mass, the phase and the temperature of the object.
Explanation :
Thermal energy is defined as the energy that is produced due to heat flow.
Mathematically, it can be written as :

Where
Q is the thermal energy or the heat absorbed/released
c is the specific heat capacity. It varies for solid, liquid and gases.
is the change in temperature
It is clear that the thermal energy depends on the object's mass, temperature and also on the phase.
Hence, the correct option is (d).