The given figure is a square-based pyramid.
The volume of this pyramid is given by the formula:

Where s is the length of the side of the base, and h is the height of the pyramid.
In this figure, s=4 cm and h=6 cm. By replacing these values we obtain:

The answer is V=32 cm^3