ISRO-2007
April 4, 2024
ISRO-2007
April 5, 2024
ISRO-2007
April 4, 2024
ISRO-2007
April 5, 2024

Question 41 – ISRO-2007

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?

Correct Answer: B

Question 14 Explanation: 
Initialisation: x = 1, i = 1;
Loop: x i
21 2
22 3
24 4
216 5
After this condition becomes false.
A
4
B
5
C
6
D
7

Leave a Reply

Your email address will not be published. Required fields are marked *