Home Modern Forums ISRO

Consider the following pseudo-code

x:=1;i:=1;while (x <= 1000)begin x:=2^x; i:=i+1;end;

What is the value of i at the end of the pseudo-code?

(A) 4
(B) 5
(C) 6
(D) 7

Reply To:

Consider the following pseudo-code

x:=1;i:=1;while (x <= 1000)begin x:=2^x; i:=i+1;end;

What is the value of i at the end of the pseudo-code?

(A) 4
(B) 5
(C) 6
(D) 7

Up
0
Down
::

nan