Evaluate the following closed contour integral

1)

with

Since is inside

Let

And by the Cauchy Integral formula

So

Thus

Is this right?

But in this following question, I have a problem

with

As is not inside

How should I go upon this question?