ISRO Scientist or Engineer Computer Science 2007 Question 15

Question 15

Consider the following psuedocode
x := 1;
i := 1;
while (x $$\leq$$ 1000)
begin
x := $$2^{x}$$;
i := i + 1;
end;
What is the value of i at the end of the pseudocode?



Create a FREE account and get:

  • Download Maths Shortcuts PDF
  • Get 300+ previous papers with solutions PDF
  • 500+ Online Tests for Free

Comments

Register with

OR

Boost your Prep!

Download App