The ferromagnetic materials when in the presence of the magnet are temporarily magnetized. Iron, cobalt, and nickel are examples of ferromagnetic materials.
Carbon is a diamagnetic material and it is not temporarily magnetized in the presence of a permanent magnet.
Thus, option 4, carbon is the correct answer.