CBSE Class 11 Computer Science Question 58 of 161

Flow of Control — Question 40

Back to all questions
40
Question

Question 40

What is the output produced when this code executes?

i = 1
while (i <= 7):
    i*= 2
print (i)
  1. 8 ✓
  2. 16
  3. 4
  4. 14
  5. no output
Answer