Internal thermal energy is given as
[tex]Q = mCT[/tex]
so it will depend on the product of mass, specific heat capacity and temperature.
so here we know that both blocks are identical with same initial temperature
So the block with larger mass must have more internal energy
So here the correct answer would be the block with mass 1000g
block with mass 1000 g must have more internal energy