Q. What will be the output of the following R code?
> y <- "fruit"
> switch(y, fruit = "banana", vegetable = "broccoli", "Neither")
> y <- "fruit"
> switch(y, fruit = "banana", vegetable = "broccoli", "Neither")
β
Correct Answer: (A)
"banana"