what is degree of freedom for diatomic molecule
Degrees of freedom are defined as the number of independent terms in the expression of energy of a molecule of gas.
For diatomic molecules, it has three components of translation energy and two components of rotational energy.
So, total number of degrees of freedom = 5.