| 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. which of the following statement tells the row with the minimum value for every column ?

Correct Answer is : 448

2. Which of the following may be used for linear regression ?

Correct Answer is : testvalue

3. Which of the following sets the size of the outer margins for the graph ?

Correct Answer is : error

4. Which of the following function is used for plotting histogram ?

Correct Answer is : Invalid

5. Which of the following will add the title “R language” to the graph ?

Correct Answer is : String

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

Correct Answer is : E

7. Which of the following statement will save the output to the file for following code ? > a <- data.frame(x = rnorm(100), y = runif(100)) > b <- c(3, 4.4, 1 / 3)

Correct Answer is : Complete text representation of month

8. Which of the following statement will load the objects to the file named “mydata.RData” ?

Correct Answer is : Today is June 22, 2013

9. ________ opens a connection to a file compressed with gzip.

Correct Answer is : mktime()

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

Correct Answer is : getlastmod()

11. Which of the following code creates a connection to ‘foo.txt’ ?

Correct Answer is : 30

12. Which of the following code opens a connection to the file foo.txt, reads from it, and closes the connection when its done ?

Correct Answer is : strtotime(“+45 days”)

13. .Which of the following opens connection to gz-compressed text file ?

Correct Answer is : $date = new DateTime(“22 JUNE 2013”)

14. What would be the result of following R code ? > x <- 1 > print(x)

Correct Answer is : Hello world

15. Which of the following code is example of explicit printing ?

Correct Answer is : Hello world I am learning PHP

16. Files containing R scripts ends with extension :

Correct Answer is : Thiswasabadidea

17. If commands are stored in an external file, say commands.R in the working directory work, they may be executed at any time in an R session with the command :

Correct Answer is : Thiswasabadidea

18. _______ will divert all subsequent output from the console to an external file.

Correct Answer is : Thiswasbadidea

19. The entities that R creates and manipulates are known as ________

Correct Answer is : HelloWorld

20. Which of the following can be used to display the names of (most of) the objects which are currently stored within R ?

Correct Answer is : HelloWorld