CBSE Class 11 Computer Science Question 55 of 161

Flow of Control — Question 37

Back to all questions
37
Question

Question 37

When the following code runs, how many times is the line "x = x * 2" executed?

x = 1
while ( x < 20 ):
    x = x * 2
  1. 2
  2. 5 ✓
  3. 19
  4. 4
  5. 32
Answer