Concept:
Degree of freedom represents independent ways in which a molecule can store energy.
Step 1:
\(O_{2}\) is a diatomic molecule.
Step 2:
Every gas molecule has:
\[
3
\]
translational degrees of freedom.
Step 3:
Diatomic molecules have:
\[
2
\]
rotational degrees of freedom.
Step 4:
\[
f=3+2=5
\]
\[
\boxed{f=5}
\]
\[
\boxed{\text{Correct Option = (4)}}
\]