Expressions and Assignment Statements

AP Computer Science A· difficulty 2/5

What is <code>17 % 5</code> in Java?

  • A

    3

  • B

    2

    check_circle
  • C

    12

  • D

    3.4

Explanation

Modulus = remainder; 17 = 5·3 + 2.

Want 10 more like this — adaptive to your weak spots?

Related questions