CBSE Class 11 Computer Science Question 57 of 161

Flow of Control — Question 39

Back to all questions
39
Question

Question 39

How many times does the following code execute ?

x = 1
while (x <= 5):
    x + 1
print (x)
  1. 6
  2. 1
  3. 4
  4. 5
  5. infinite ✓
Answer