Answer:
Part A: Rectangle | Since the cross section is cut parallel to the base, it will be the same shape as the top and bottom of the prism, meaning it's a rectangle.
Part B: Right triangle | If the cross section is cut diagonal through the prism, it will cut from one of the top corners to the bottom corner diagonal to them, which forms a right triangle.