Step 1: Key property
Internal energy of an ideal gas depends only on temperature.
Step 2: Reason
Potential energy depends on the distance between molecules, which is irrelevant when the molecules do not interact.
Step 3: Eliminate
So the options mentioning potential energy, or no energy at all, are wrong.
Final Answer:
Only kinetic energy contributes to the internal energy.
\[ \boxed{\text{(D) }\text{only kinetic energy}} \]