Vidyalelo
R Programming · Q23

Control Structures in R Programming

Programming · R Programming · question 23

Q23

How is the for loop different from the while loop in R?

A.
for loop is used for fixed iterations, while loop for variable iterations
Answer
B.
while loop is used for fixed iterations, for loop for variable iterations
C.
Both for and while loops are used for fixed iterations
D.
Both for and while loops are used for variable iterations

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board