The quadratic x^2 + px + 0 = 0 has roots 7 and 0. Find p.
Note
Use Vieta's formula for x² + px + q = 0. For this form, the sum of the roots is -p and the product of the roots is q. The given roots are 7 and 0, so their sum is 7 + 0 = 7. Since sum = -p, we have -p = 7, which gives p = -7. The product 7×0 = 0 also matches the constant term, so the roots are consistent. Therefore the correct answer is -7.
