(a) For the given situation, diagram can be drawn as follows
As shown in figure component of dipole moment along the line $OP$ will be $p^{'} = p\cos\theta$
Hence electric potential at point $P$ will be
$V = \frac{1}{4\pi\varepsilon_{0}}.\frac{p\cos\theta}{r^{2}}$