Question Detail

COS 102 test topic Objective Question

Question

What does the modulo operator (`%`) return when evaluating `29 % 6`?
Options
A 4
B 5
Correct Answer
C 4.83
D 1
Correct Answer

Option B is the correct answer.

Detailed Explanation

The modulo operator computes the remainder of an integer division; 29 divided by 6 leaves a remainder of 5.

Hint

No hint available

Question Info