Nitish Kumar (anonymous) doubts approved

Can electricity be generated in a solenoid by rotating a magnet inside it?