Two magnets are placed close to each other as shown below. Which set will attract each other?
Like poles repel and unlike poles attract. The set in option (D) has both magnets placed with opposite poles facing each other. Hence, they attract each other.