My Report

R Programming Practice Test 4


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. Point out the correct statement?

2. Which of the following statement will load the objects to the file named "mydata.RData"?

3. Which of the following return a subset of the columns of a data frame?

4. The _________ function can be used to select columns of a data frame that you want to focus on.

5. When you call serialize() on an R object, the output will be ____ coded in hexadecimal format.

6. Which of the following code extracts 1st element of the 2nd element?

 > x <- list(a = list(10, 12, 14), b = c(3.14, 2.81)) 

7. If we want to save individual R objects to a file, we use the _______ function.

8. Which of the following is example of vectorized operation as far as subtraction is concerned?

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

9. What will be the output of the following R code?

 
> x <- list(foo = 1:4, bar = 0.6, baz = "hello")
> name <- "foo"
> x$name

10. Individual R objects can be saved to a file using the _____ function.


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.