1

Which of the following R code snippet stops loop after 20 iterations?

Correct Answer: for(i in 1:100) { print(i) if(i > 20) { break } }

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: Which of the following R code snippet stops loop after 20 iterations? | Extra Education