For the first
H : O : H
Theres two bonds here
Each other are sigma
So 2Sigma bonds present
For the Second
I believe you wanted to write Ethyne....
In a triple bond... Theres 1sigma and 2 Pi bonds
Every single bond is a sigma bond
So
Counting all
we have
2Pi bonds and 3Sigma bonds