What is the result of the expression 6 %/% 4 in R?

What is the result of the expression 6 %/% 4 in R?

a) 2
b) 1
c) 3
d) 4

Answer:

b) 1

Explanation:

The %/% operator performs integer division, so 6 %/% 4 results in 1 (as the remainder is discarded).

Reference:

R Programming – Operators MCQ Questions and Answers

Scroll to Top