The correct option is B Electromagnet
A metal detector incorporates an electromagnet within it for screening purpose and detection of concealed weapons. The electromagnet once powered, emits magnetic field onto the metal which is to be detected which inturn generates a magnetic field of its own and is received by the metal detector. Permanent magnets cannot be used in this application since it cannot generate strong magnetic fields and may cause unnecessary problem because its attractive property which cannot be deactivated.