| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Collection of objects currently stored in R is called as :

Correct Answer is : 0

2. What is the output of the following function? ab <- list(1, 2, 3, "X", "Y", "Z") dim(ab) <- c(3,2) print(ab)

Correct Answer is : This is India

3. What is the meaning of the following function? x <- c(4, 5, 1, 2, 3, 3, 4, 4, 5, 6) x <- as.factor(x)

Correct Answer is : My car is a Volvo

4. What is the meaning of the following function? print( sqrt(2) )

Correct Answer is : 16

5. What is the output of the following function? d <- date() d

Correct Answer is : 16

6. What is the output of the following function? paste("Everybody", "is", “a” , "warrior")

Correct Answer is : Fatal run-time error

7. What is the output of the following function? cat("Everybody", "is", "a", “warrior”,sep="*")

Correct Answer is : Fatal run-time error

8. What is the output of the following function? nchar()

Correct Answer is : PHP 5

9. What is the output of the following function? d <- diag(5, nrow=2, ncol=2) d

Correct Answer is : PHP 5

10. What is the output of the following function? Sys.Date()

Correct Answer is : ~

11. What is the output of the following function? Sys.time()

Correct Answer is : ~

12. Which of the following is valid syntax for if else statement in R ?

Correct Answer is : error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR

13. Which of the following syntax is correct for while loop ?

Correct Answer is : error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR

14. Which of the following code generate a uniform random number ?

Correct Answer is : PHP 5.2

15. _______ is used to break the execution of a loop.

Correct Answer is : PHP 5.2

16. Which of the following code generate a sequence of integers from 1 to 10 ?

Correct Answer is : ignore_repeated_errors

17. Which of the following statement can be used to explicitly control looping ?

Correct Answer is : ignore_repeated_errors

18. Which of the following should be preferred for evaluation from list of alternatives ?

Correct Answer is : define_syslog_variable()

19. .What will be the output of the following code ? > x <- c("a", "b", "c", "d") > for(i in 1:4) { + ## Print out each element of 'x' + print(x[i]) + }

Correct Answer is : define_syslog_variable()

20. Which of the following code skips the first 20 iterations?

Correct Answer is : LOG_CONS