The power dissipated in a resistor can be calculated using the formula:
\[
P = I^2 R
\]
Where:
- \( P \) is the power dissipated,
- \( I = 2 \, \text{A} \) is the current,
- \( R = 5 \, \Omega \) is the resistance.
Substituting the known values:
\[
P = (2)^2 \times 5 = 4 \times 5 = 20 \, \text{W}
\]
Thus, the power dissipated in the resistor is \( 10 \, \text{W} \).