Mercury, Venus, Earth and Mars are rocky terrestrial planets. Jupiter and Saturn are gas giants. Uranus and Neptune are ice giants. These labels compare broad properties; an ice giant is not a solid ball you could skate around.
Worked example
Earth and Mars share the terrestrial group even though they are not identical. Jupiter and Neptune are both giant planets, but our table places them in different subgroups: gas giant and ice giant.
A Classification Table
Terrestrial: Mercury, Venus, Earth, Mars. Gas giants: Jupiter, Saturn. Ice giants: Uranus, Neptune. All four giant planets have rings, though Saturn's are especially conspicuous. Use only the supplied grouping for these questions. This is a classification diagram, not a picture of relative planet sizes.