Which of the following is the correct operator for integer division in R?

Which of the following is the correct operator for integer division in R?

a) %/%
b) %%
c) //
d) ˆ

Answer:

a) %/%

Explanation:

The %/% operator in R performs integer division, returning the quotient of the division.

Reference:

R Programming – Operators MCQ Questions and Answers

Scroll to Top