The function is terminated for any value of n which is in power of 2. There are infinite nos, which are power of 2. Therefore (ii) is correct.
Now, take n= 10 , the function call will go in loop for value of n = 5, 14,7,20,10,5,14.......so on.
The above pattern will repeat for numbers 10, 20,40,80,160,320,640.... Infinity.
Therefore (iv) is also true.
Hence, answer is D