Vidyalelo
Python · Q30

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 30

Q30

What is the output of the following code snippet:count = 0while count < 3: print("Hello") count += 1

A.
Hello
Hello
B.
Hello
Hello
Hello
Answer
C.
0
1
2
D.
It enters an infinite loop

Answer: Option B

Solution

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