Multiple choice technology programming languages

The output of operation 20%3 is

  1. 6

  2. 2

  3. 1

  4. 4

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The modulo operator % returns the remainder of division. 20 divided by 3 is 6 with remainder 2, so 20 % 3 = 2.