When you cut through all the faces of a rectangular prism, the shape formed is a hexagon. This happens because a rectangular prism has 6 rectangular faces, and cutting through them can create intersections that form a hexagonal shape.
So, the correct answer is: hexagon.