Which of the following statements is, are correct?
A) A long wire wound in a closely packed helix is called solenoid.
B) The magnetic field lines set up by solenoid resemble those of a bar magnet.
C) One end of the solenoid behaves like a north pole and other behaves like a south pole when electric current flows through it.
D) All of the above