Site icon Exam4Training

What would you insert instead of ???, so that the program checks for even numbers?

What would you insert instead of ???, so that the program checks for even numbers?

A . x % ‘even’ == True
B . x % 2 == 1
C . x % 2 == 0
D . x % x == 0
E . x % 1 == 2

Answer: C

Exit mobile version