Answer : The correct answer is- D) Friction.
There are three modes of charging, which are Conduction, induction, and friction.
The static electricity is produced due to the rubbing of one substance with another. This is called charing by friction.
Hence, the correct answer is friction as there is friction between carpet and the feet of person walking over it.