Java OCA OCP Practice Question 459

Question

Fill in the blanks:

The ____ operator is used to find the difference between two numbers,

while the __ operator is used to find the remainder when one number is divided by another.

  • A. /, %
  • B. -, %
  • C. %, <
  • D. -, ||


B.

Note

The subtraction - operator is used to find the difference between two numbers.

The modulus % operator is used to find the remainder when one number is divided by another, making Option B the correct answer.

The other options use operators that do not match this description.




PreviousNext

Related