Answer:
Antibiotic resistance occurs when bacteria do some variation in their genome that allows bacteria to eliminate the effect of antibacterial drugs. Irregular or excessive antibiotics use is the main cause of generating antibiotic resistance bacteria.
So antibiotics should be taken only on the prescription of doctors and a complete course of antibiotics should be done to eliminate all the bacteria so that no bacteria is left to generate antibiotic-resistant bacteria.
Antibiotics should be avoided in viral infection as antibiotic does not kill viruses as it is only beneficial in bacterial infection.