The figure formed by joining the midpoints of the sides of a quadrilateral ABCD, taken in order, is a square, only if
(a) ABCD is a rhombus
(b) diagonals of ABCD are equal
(c) diagonals of ABCD are perpendicular
(d) diagonals of ABCD are equal and perpendicular