Answer:
Step-by-step explanation:
The static charges are generated due to excess or deficiency of electrons, because these are the smallest quanta of charge available at the molecular level which can get transferred with minimal energy requirement.
These charges are usually generated by friction between the two surfaces leading to the transfer of electron from one to another.
When a plastic pipe is rubbed with a cloth then due to friction the surface of the cloth loses electron which gets stuck at the surface of the pipe making it negatively charged.