when is a velocity is zero and acceleration nonzero?

3 answers

Not necessarily; it can be accelerating as it reverses direction.
..or it can be completely stationary and not accelerate at all.
...or the two directions might be at right angles. I.e. the object might be accelerating in the North direction, but have zero velocity in the Westerly direction.