A conducting ring is placed around the core of an electromagnet as shown in fig. When key K is pressed