CBSE Class 11 Computer Science Question 56 of 161

Flow of Control — Question 38

Back to all questions
38
Question

Question 38

What is the output when this code executes ?

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