Here we are assuming that the car is moving in a straight line and is traveling on a smooth surface. When the car is moving with acceleration the bob moves in the opposite direction with the same acceleration. Gravity is acting on the bob so it is experiencing an acceleration of downwards.
The angle between the acceleration and the acceleration due to gravity is