A square.
No, a cube cannot have an octagonal cross-section.
Rectangle
The cross section of a pyramid shrinks from the shape of the base down to a point as you move along its axis from the base to the apex. The cross section of a prism is constant along its axis.
It is a triangle.
No because it would be smaller.
No, a cube cannot have an octagonal cross-section.
A square
Infinitely many.
Yes it can.
The cross sectional area of a triangular prism is simply the area of the base. The formula for the area of a triangle in one half base times height. Remember that a triangular prism by definition has a triangle for a base.
Rectangle
Yes, but not a regular one.
It will be the same shape as a square
A cylinder has a circular cross section that is parallel to its base.
The cross section of a pyramid shrinks from the shape of the base down to a point as you move along its axis from the base to the apex. The cross section of a prism is constant along its axis.
The following are some shapes having a square cross section: a cube, a cuboid, a square pyramid.
Cube, Cuboid. Any prism with a quadrilateral cross section