My Report

R Programming Mock Test 7


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. The profiler can be turned off by passing _________ to Rprof().

Question 1 of 10

Question 2 of 10

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

> printmessage2 <- function(x) {
+                      if(is.na(x))
+                              print("x is a missing value!")
+                      else if(x > 0)
+                              print("x is greater than zero")
+                      else
+                              print("x is less than or equal to zero")
+                      invisible(x)
+ }
> printmessage2(NA)

Question 2 of 10

Question 3 of 10

3. The _______ function computes the time (in seconds) needed to execute an expression.

Question 3 of 10

Question 4 of 10

4. How many methods exist for normalizing the data?

Question 4 of 10

Question 5 of 10

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

> x <- rnorm(10)
> x

Question 5 of 10

Question 6 of 10

6. Point out the wrong statement?

Question 6 of 10

Question 7 of 10

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

Question 7 of 10

Question 8 of 10

8. ________ generate random Normal variates with a given mean and standard deviation.

Question 8 of 10

Question 9 of 10

9. Point out the wrong statement?

Question 9 of 10

Question 10 of 10

10. Point out the correct statement?

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.