Question Detail

COM 101 COM 101 Past Questions Objective Question

Question

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

Option B is the correct answer.

Detailed Explanation

First, calculate the exponent: 2^2 = 4. Then, perform the modulus: 9 MOD 4. 9 divided by 4 is 2 with a remainder of 1. So, 9 MOD 4 = 1.

Hint

Follow the order of operations: exponent before MOD.

Question Info