Step 1: Understanding the Concept
Internal energy is the sum of the kinetic and potential energies of the molecules.
Step 2: Ideal gas assumption
In an ideal gas there are no intermolecular forces, so the potential energy is zero.
Step 3: Conclusion
The internal energy consists only of the kinetic energy of the molecules, \( U=\dfrac{f}{2}nRT \), which depends only on temperature.
Final Answer:
The internal energy of an ideal gas is only kinetic energy.
\[ \boxed{\text{(D) }\text{only kinetic energy}} \]