How many times is Hello printed? python i = 0 while i < 5: print('Hello') i += 2
- 2
- 3
- Infinite
- 5
Answer
B) 3
i takes values 0, 2, 4 (then 6 stops the loop): 3 times. SLO CS-11-C-02 · Application
Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise