Concept:
- A function is continuous at \(x=c\) when \(\displaystyle\lim_{x\to c^-} f(x) = f(c) = \lim_{x\to c^+} f(x)\).
- Standard limit: \(\displaystyle\lim_{x\to 0} \frac{\sin kx}{x} = k\).
- A difference of square roots is simplified by rationalising: \(\sqrt{1+x}-1 = \dfrac{x}{\sqrt{1+x}+1}\).
Step 1: Identify the point to be tested
For \(x\lt 0\) and for \(x\gt 0\) the function is built from continuous functions with non-zero denominators, so it is continuous there. The only point that needs a condition is \(x=0\), where \(f(0)=q\). We need \[ \lim_{x\to 0^-} f(x) = q = \lim_{x\to 0^+} f(x). \]
Step 2: Evaluate the left-hand limit
\[ \begin{aligned} \lim_{x\to 0^-} \frac{\sin (p+1)x + \sin x}{x} &= \lim_{x\to 0^-}\frac{\sin (p+1)x}{x} + \lim_{x\to 0^-}\frac{\sin x}{x} \\ &= (p+1) + 1 = p+2 . \end{aligned} \]
Step 3: Evaluate the right-hand limit
For \(x\gt 0\), take \(\sqrt{x}\) common from the numerator, using \(\sqrt{x+x^2} = \sqrt{x}\,\sqrt{1+x}\): \[ \frac{\sqrt{x+x^2}-\sqrt{x}}{x^{3/2}} = \frac{\sqrt{x}\left(\sqrt{1+x}-1\right)}{x^{3/2}} = \frac{\sqrt{1+x}-1}{x} . \] Rationalising the numerator gives \[ \frac{\sqrt{1+x}-1}{x} = \frac{x}{x\left(\sqrt{1+x}+1\right)} = \frac{1}{\sqrt{1+x}+1} . \] Hence the right-hand limit is \(\dfrac{1}{2}\).
Step 4: Apply the continuity condition
Equating the three values, \[ p + 2 = q = \frac12 . \] So \(q = \dfrac12\) and \(p = \dfrac12 - 2 = -\dfrac32\).
The other pairs fail: any pair with \(q\) different from \(\dfrac12\) misses the right-hand limit, and \(p=\dfrac52\) gives a left-hand limit of \(\dfrac92\), not \(\dfrac12\).
Step 5: Conclusion
\(p = -\dfrac32\) and \(q = \dfrac12\). Hence, the correct option is (B), \(p = -{3 \over 2}\), \(q = {1 \over 2}\).