The correct answer is: A. 2 years.
The Information Technology Act, 2000, Section 67A states that whoever publishes or transmits or causes to be published or transmitted in the electronic form any material which is grossly offensive or has a tendency to deprave and corrupt persons who are likely to read, see or hear the same shall be punished with imprisonment of either description for a term which may extend to two years and with fine.
Option B is incorrect because the maximum term given for publishing electronic obscene information is 2 years, not 5 years.
Option C is incorrect because the maximum term given for publishing electronic obscene information is 2 years, not 10 years.
Option D is incorrect because the maximum term given for publishing electronic obscene information is 2 years, not 15 years.