Vidyalelo
Python · Q85

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 85

Q85

What will be the output of the following Python code? i = 5 while True: if i%0O9 == 0: break print(i) i += 1

A.
5 6 7 8
B.
5 6 7 8 9
C.
5 6 7 8 9 10 11 12 13 14 15 ....
D.
error
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board