The correct option is A +2
Let x be the oxidation state of O in OF2.
Since the overall charge on the complex is 0, the sum of oxidation states of all elements in it should be equal to 0.
Therefore, x+2(−1)=0
or, x=+2.
Hence, the oxidation state of O in OF2 is +2.