For a binomial distribution with parameters \( n \) and \( p \) (number of trials and probability of success), the mean and variance are given by the following formulas:
- The mean \( \mu \) is:
\[
\mu = np
\]
- The variance \( \sigma^2 \) is:
\[
\sigma^2 = np(1 - p)
\]
Thus, the mean is \( np \) and the variance is \( np(1 - p) \), which corresponds to option (D).
Final Answer: (D)