Question Detail

COM 101 COM 101 Past Questions Objective Question

Question

2 mod 4 = _________.
Options
A 0
B 1
C 2
Correct Answer
D 3
Correct Answer

Option C is the correct answer.

Detailed Explanation

The modulus operation gives the remainder. 2 divided by 4 is 0 with a remainder of 2. Therefore, 2 MOD 4 = 2.

Hint

If the first number is smaller, the result is the first number.

Question Info