Vidyalelo
Python · Q6

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 6

Q6

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

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

Answer: Option A

Solution

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