My Report

R Programming Mock 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
 10%

Question 1 of 10

1. Point out the correct statement?

Question 1 of 10

Question 2 of 10

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

> x <- as.Date("2012-03-01")
> y <- as.Date("2012-02-28")
> x-y

Question 2 of 10

Question 3 of 10

3. ________ add new variables/columns or transform existing variables.

Question 3 of 10

Question 4 of 10

4. The _________ function is used to generate summary statistics from the data frame within strata defined by a variable.

Question 4 of 10

Question 5 of 10

5. Point out the correct statement?

Question 5 of 10

Question 6 of 10

6. Connections to text files can be created with the ________ function.

Question 6 of 10

Question 7 of 10

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

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

Question 7 of 10

Question 8 of 10

8. Multiple objects can be de parsed at once and read back using function _____

Question 8 of 10

Question 9 of 10

9. 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)) 

Question 9 of 10

Question 10 of 10

10. .RData extension used when we save data using the functions ___________

Question 10 of 10


 

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.