Step 1: Differentiate the determinant row by row:
The derivative of a determinant is the sum of determinants, each with one row differentiated.
\[ f^{\prime}(x) = \begin{vmatrix} 2x & \cos x \\ p & -1 \end{vmatrix} + \begin{vmatrix} x^{2} & \sin x \\ 0 & 0 \end{vmatrix} \]
Step 2: Simplify:
The second determinant has a zero row, so it is $0$.
\[ f^{\prime}(x) = -2x - p\cos x \]
Step 3: Evaluate at 0:
At $x = 0$ this is $-p$. Setting $-p = 1$ gives $p = -1$.
Step 4: Check with the options:
Put $p = -1$: $f^{\prime}(0) = 1$, as required. Put $p = 1$: we get $-1$. Put $p = 0$: we get $0$.
So only option (D) works.
Final Answer:
\[ \boxed{-1} \]
Option (D).