My Report

R Programming Mock Test 6


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. ________ applies a function over the margins of an array.

Question 1 of 10

Question 2 of 10

2. _______________ returns TRUE then X can be termed as a matrix data object.

Question 2 of 10

Question 3 of 10

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

> printmessage <- function(x) {
+ if(x > 0)
+         print("x is greater than zero")
+ else
+         print("x is less than or equal to zero")
+ invisible(x)
+ }
> printmessage(NA)

Question 3 of 10

Question 4 of 10

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

Question 4 of 10

Question 5 of 10

5. Warnings are generated by the _________ function.

Question 5 of 10

Question 6 of 10

6. ___________ function gives an error message if the desired package cannot be loaded.

Question 6 of 10

Question 7 of 10

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

> x <- list(a = 1:5, b = rnorm(10))
> lapply(x, mean)

Question 7 of 10

Question 8 of 10

8. ________ function generates "n" normal random numbers based on the mean and standard deviation arguments passed to the function.

Question 8 of 10

Question 9 of 10

9. Point out the wrong statement?

Question 9 of 10

Question 10 of 10

10. R uses _________ scoping6 0 or static scoping.

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.