What is printed? (count even numbers with a while loop) python nums = [3, 8, 10, 7, 4] i = even = 0 while i < len(nums): if nums[i] % 2 == 0: even += 1 i += 1 print(even)

  1. 2
  2. 4
  3. 3
  4. 5
Answer

C) 3

8, 10 and 4 are even. SLO CS-11-C-05

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise