R Language Test 3

This quiz “R Language Test” will help you to check your ability to execute some basic operations on objects in the R language, and it will also help you to understand some basic concepts. This quiz may also improve your computational understanding.

The R language quiz covers some looping functions such as apply(), lapply(), mapply(), sapply(), and tapply(). Results from execution of r codes is also asked.

1. Which of the following is an example of a vectorized operation for subtraction operation

> x<- 1:4
> y<- 6:9


2. What would be the value of the following expression?

> log(-1)


3. ______ function is same as lapply( )


4. The ________ function takes a vector or other objects and splits it into groups determined by a factor or list of factors.


5. The debug( ) flags a function for ______ mode in R mode.


6. Which of the following is a base package for R language?


7. Which of the following is used for Statistical analysis in R language?


8. The lapply( ) function takes _______ arguments


9. _______ applies a function over the margins of an array


10. What would be the output of the following code?

> x <- 1:4
> y <- 6:9
> z <- x + y
> z


11. A matrix is _______ dimensionsinal rectangular data set?


12. R functionality is divided into a number of


13. _______ loop over a list and evaluate a function on each element


14. Which of the following method make a vector of repeated values?


15. R comes with a ________ to help you optimize your code and improve its performance.


16. ____ ____is used to apply a function over subsets of a vector


17. What would be the output of the following code?
> x <- 1:4
> x > 2