Vidyalelo
R Programming · Q6

Control Structures in R Programming

Programming · R Programming · question 6

Q6

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

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

Answer: Option B

Solution

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