magnetic
If a magnetic compass needle is placed in a magnetic Field , its needle deflects and points in the north and south directions
The compass will align itself with the magnetic field generated by the current flow through the wires.
waves transfer energy
All waves do that.
Using a compass is the easiest way. The needle is going to point to the Magnetic North Pole. That means that the compass needle is ALIGNED with the Magnetic Field Lines of the Earth's magnetic field at your current position.
Why not? the desert is just the same as any other place on planet earth. Magnetic compasses work fine in the desert. See the "Where does the magnetic compass not work?" question for some places where they don't work.
The compass needle is magnetic so if you place a magnet near the compass, the needle will change direction either attracting or reppeling.
Chemical energy is changed into electrical energy
molecule
No, they do not. A wave transfers energy but the matter does not move forward with the wave.
The magnetic field can certainly be detected by a compass.The 'lines' are a handy human invention, and don't really exist, so you could not,say, trace out the lines with a compass, because they're not there.But place a compass next to a wire that's involved in any battery-operated (DC)circuit, and the compass absolutely goes crazy !
Like magnetic poles repel, unlike magnetic poles attract. So the magnetic south and magnetic north of two bar magnets will attract. Therefore, though the compass needle points towards the magnetic north, it is actually the magnetic south pole of the compass needle that is pointing towards the magnetic north.