

for the second one, cot(θ) = -1, bear in mind that cotangent is cosine/sine, so where both of them are the same values BUT different signs, you'd get a -1 from their fraction, and that happens at halfway in II and IV Quadrants, since on those quadrants both of them are of different signs.