Slicing off the top of a pyramid such that the cross section is parallel to the base of the pyramid gives the same shape as the shape of the base of the pyramid.
Given a block in the shape of a pyramid with a square base, a slice off the top of the pyramid to get a cross section parrallel to the base will result in the shape of the cross section being equivalent to the shape of the base of the pyramid.
Therefore, the shape of the cross section is a square.