Two bar magnets are to be cut in half along the dotted lines shown. of the pieces are rotated. After the cut:
(A) of the halves will attract any other
(B) The two halves of each magnet will attract each other
(C) The two halves of each magnet will repel each other
(D) The two halves of the top magnet will repel, the two halves of the bottom magnet will attract
(E) The two halves of the top magnet will attract, the two halves of the bottom magnet will repel