All of them can be so sliced.
_____
The cube is sliced perpendicular to a space diagonal.
The prism is sliced parallel to a base.
The pyramid is sliced at any corner where three edges come together. Assuming the pyramid is symetrical, the intersection of the cutting plane with the base will be perpendicular to the diagonal of the base.