A rectangular pyramid is sliced so the cross section is perpendicular to its base but does not pass through its vertex.

What is the shape of the cross section?

rectangle

triangle

trapezoid

square