Concept:Use f(3)=6 and the derivative condition f′(3)=0 to write two equations in p and q.Solution:The given function is f(x)=x2+px+q.Since f(3)=6, substitute x=3:32+p(3)+q=6So 9+3p+q=6.Differentiate the function to get f′(x)=2x+p.The derivative condition gives f′(3)=0.Therefore 2(3)+p=0, so 6+p=0.Hence p=−6.Now substitute p=−6 into 9+3p+q=6:9+3(−6)+q=69−18+q=6−9+q=6Adding 9 to both sides:q=6+9=15.Answer:Option C (15)