The answer is (2) Both terrestrial and Jovian planets have layered interiors, with density increasing toward the center.
Jovian planets (the outer planets) increase in density, temperature and pressure as you move towards the center. The said can be the same with terrestrial planets. You can see plainly in the diagram that they both have layered interiors.
Terrestrial planets in general are denser than Jovian planets, but the cores of Jovian planets have higher densities than those of the terrestrial planets.