assume a=2 (a>1) and b=15( a<b)
int x=0 , int p=1
while(p<15) // executes 4 times
{
p=p*2 //
x=x+1
}
loop entry condition p=1 { p becomes 2 , x=1} then { p=2 p becomes 4, x=2}
then { p=4 , p becomes 8 , x=3 } then {p=8 , p becomes 16 x=4}
loop terminates
so final value of x= ceil (lg15 ) =4 option d