Vidyalelo
R Programming · all questions

Control Structures in R Programming
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

207

Questions

6/11

Page

Pick an option on a question to see the right answer and solution.

Which of the following should be preferred for evaluation from list of alternatives?

Select an option to see the answer and solution.

What will be the class of the vector if you concatenate a number and a character?

Select an option to see the answer and solution.

Which of the following R code snippet stops loop after 20 iterations?

Options are not available for this question.

Select an option to see the answer and solution.

. . . . . . . . package is used to speed up data frame management code.

Select an option to see the answer and solution.

Which of the following is multivariate version of lapply?

Select an option to see the answer and solution.

Functions are defined using the . . . . . . . . directive and are stored as R objects.

Select an option to see the answer and solution.

MapReduce jobs submitted from either Oozie, Pig or Hive can be used to encode, improve and sample the data sets from . . . . . . . . into R.

Select an option to see the answer and solution.

What will be the output of the following R code?
> y <- "fruit"
> switch(y, fruit = "banana", vegetable = "broccoli", "Neither")

Select an option to see the answer and solution.

Which of the following R code generate a sequence of integers from 1 to 10?

Options are not available for this question.

Select an option to see the answer and solution.

. . . . . . . . function is usually used inside another function and throws a warning whenever a particular package is not found.

Select an option to see the answer and solution.

The . . . . . . . . function returns a list of all the formal arguments of a function.

Select an option to see the answer and solution.

What will be the output of the following R code?
> x <- list(a = 1:4, b = rnorm(10), c = rnorm(20, 1), d = rnorm(100, 5))
> sapply(x, mean)

Select an option to see the answer and solution.

Which function is used to create a histogram for visualisation in R programming language?

Select an option to see the answer and solution.

. . . . . . . . function is used to apply an expression for a given dataset.

Select an option to see the answer and solution.

. . . . . . . . function is used in applying a function each level of factors.

Select an option to see the answer and solution.

The recover() function will first print out the function call stack when an . . . . . . . . occurs.

Select an option to see the answer and solution.

The cumulative frequency distribution of a categorical variable can be checked using the . . . . . . . . function in R language.

Select an option to see the answer and solution.

R uses . . . . . . . . scoping6 0 or static scoping.

Select an option to see the answer and solution.

R has . . . . . . . . statements that provide explicit looping.

Select an option to see the answer and solution.

Point out the wrong statement?

Select an option to see the answer and solution.