How do you exit a repeat loop in R?

How do you exit a repeat loop in R?

a) continue
b) break
c) stop
d) exit

Answer:

b) break

Explanation:

The break statement is used to exit a repeat loop in R.

Reference:

R Programming – Loops MCQ Questions and Answers

Scroll to Top