(b) In accelerated frame of reference, a fictitious force (pseudo force) $ma$ acts on the bob of pendulum as shown in figure
Hence,
$\tan{\theta = \frac{ma}{mg} = \frac{a}{g}}$
$\Rightarrow \theta = \tan^{- 1}\left( \frac{a}{g} \right)$ in the backward direction