Vidyalelo
Python · Q25

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 25

Q25

What is the output of the following code:x = 0while x < 5: print(x) x += 1

A.
0
1
2
3
4
Answer
B.
1
2
3
4
5
C.
1
1
1
1
1
D.
0
1
2
3
5

Answer: Option A

Solution

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