Step 1: Integral of \( \frac{1}{z} \) over a contour.
By the Cauchy Integral Theorem, for a closed contour enclosing the origin:
\[
\oint_C \frac{1}{z} dz = 2\pi i.
\]
Step 2: Consider the given semicircular contour.
- Given contour \( C \) covers half of the full circle.
- So, the integral is half of \( 2\pi i \), which gives:
\[
\pi i.
\]
Step 3: Selecting the correct option.
Since \( \pi i \) is correct, the answer is (A).