Answer: C. A rigid diatomic molecule has 3 translational + 2 rotational = 5 degrees of freedom. Vibrational modes are frozen out at moderate temperatures (NCERT Class 11 Physics Chapter 12, page 253).
Why A is wrong: A gives 3, which is the DoF count for a monoatomic gas. A diatomic molecule has rotational modes in addition to translational.
Why B is wrong: B gives 6, which is the DoF count for a rigid polyatomic molecule (3 translational + 3 rotational), not diatomic.
Why D is wrong: D gives 7, which would apply to a diatomic molecule with vibrational modes included (f = 5 + 2). At moderate temperatures, vibrational DoFs are not active unless stated.