The problem is in the attachment along with my answer. Can please one check if I got a correct answer?
Some sources say the answer is 2Pi instead of just Pi.
No, x can be less than zero. Your definite integral is from -2<x<2, after all. What is under your square root is not x, but 4-x^2. So 4-x^2 has to be greater than or equal to zero. Follow?
As Char limit has pointed out, they are similar in the fact that they deal with the graph of a circle, but check the bounds of the example problem and compare those with your problem, now think about how they differ.