Question 40

Consider the following pseudocode.
x := 1;
i := 1;
while’$$(x \leq 500)$$
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

Join CAT 2026 course by 5-Time CAT 100%iler

Crack CAT 2026 & Other Exams with Cracku!

Ask AI

Ask our AI anything

AI can make mistakes. Please verify important information.