Vidyalelo
Python · Q78

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 78

Q78

What will be the output of the following Python code? i = 0 while i < 3: print(i) i += 1 else: print(0)

A.
0 1 2 3 0
B.
0 1 2 0
Answer
C.
0 1 2
D.
error

Answer: Option B

Solution

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