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. _______ loop over a list and evaluate a function on each element

 
 
 
 

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

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

 
 
 
 

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

 
 
 
 

4. The lapply( ) function takes _______ arguments

 
 
 
 
 

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

> log(-1)

 
 
 
 

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

 
 
 
 

7. ______ function is same as lapply( )

 
 
 
 

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

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

16. R functionality is divided into a number of

 
 
 
 

17. A matrix is _______ dimensionsinal rectangular data set?