What is 7 % -4?
Click to view the answer
B.
When doing modulo arithmetic with a negative right-hand operand, the result is the same as it would be if the right-hand operand were positive.
So 7 % -4 is the same as 7 % 4.