A dam foundation should be strong enough to support the dam and have low permeability to minimize seepage.
High-strength, sound, and impermeable rock provides stability and prevents excessive leakage.
Hence,
\[
\boxed{\text{High strength and low permeability of rocks}}
\]
is the correct answer.
Therefore,
\[
\boxed{(B)}
\]