91. What will be the output of the following R code snippet?
> lm <- function(x) { x * x }
> lm
> lm <- function(x) { x * x }
> lm
92. Write the syntax to set the path of the current working directory in R environment?
93. Which of the following language supports lexical scoping?
94. What will be the value of following R expression?
95. What will be the output of the following R code?
> x <- 3
> switch(6, 2+2, mean(1:10), rnorm(5))
> x <- 3
> switch(6, 2+2, mean(1:10), rnorm(5))
96. Warnings are generated by the . . . . . . . . function.
97. Point out the correct statement?
98. Point out the correct statement?
99. What will be the output of the following R code snippet?
> paste("a", "b", sep = ":")
> paste("a", "b", sep = ":")
100. What will be the output of the following R code?
> mean(x)
Error in mean(x) : object 'x' not found
> traceback()
> mean(x)
Error in mean(x) : object 'x' not found
> traceback()
Read More Section(Control Structures in R Programming)
Each Section contains maximum 100 MCQs question on Control Structures in R Programming. To get more questions visit other sections.