Control Structures In R Programming - Study Mode
[#91] Which function is more verbose?
Correct Answer
(C) Vapply
[#92] Which control structure in R is used to execute a block of code repeatedly until a condition is met?
Correct Answer
(C) while loop
[#93] In R, what is the purpose of the if-else statement?
Correct Answer
(A) To execute a block of code if a condition is true, otherwise execute another block of code
[#94] How is the switch() function used in R?
Correct Answer
(C) To select one of several alternatives
[#95] What is the purpose of the break statement in a loop in R?
Correct Answer
(A) To exit the loop immediately