| 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. ___________ function gives an error message if the desired package cannot be loaded.

Correct Answer is : Library

2. A ________________ in R programming language can also contain numeric and alphabets along with special characters like dot and underline.

Correct Answer is : Variable name

3. The current user defined objects like lists, vectors, etc. is referred to as __________ in the R language.

Correct Answer is : Work names

4. Which function helps you perform sorting in R language?

Correct Answer is : Order

5. Which function is used to create a histogram for visualisation in R programming language?

Correct Answer is : Hist

6. Write the syntax to set the path of the current working directory in R environment?

Correct Answer is : Setwd(“dir_path”)

7. What will be the output of runif()?

Correct Answer is : Random number

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

Correct Answer is : rnorm

9. Write a function to extract the first name in the string “Mrs. Jake Luther”?

Correct Answer is : Substr

10. _________ package provides basic functionalities in R environment like arithmetic calculations, input/output.

Correct Answer is : R base

11. Which function basically finds the intersection between two different sets of data?

Correct Answer is : Merge

12. Which function calculates the count of each category of a categorical variable?

Correct Answer is : Table

13. The cumulative frequency distribution of a categorical variable can be checked using the ________ function in R language.

Correct Answer is : Cumsum

14. A programmer builds a _________ to avoid repeating the same task or reduce complexity.

Correct Answer is : Function

15. _______ grammar makes a clear distinction between your data and what gets displayed on the screen or page.

Correct Answer is : ggplot2

16. Point out the wrong statement :

Correct Answer is : plot is used to create a scatterplot matrix (experimental)

17. Which of the following cuts numeric vector into intervals of equal length ?

Correct Answer is : cut_interval

18. Which of the following is a plot to investigate the order in which observations were recorded ?

Correct Answer is : ggorder

19. Point out the wrong statement :

Correct Answer is : theme_color is classic-looking theme, with x and y axis lines and no gridlines

20. ________ is used for translating between qplot and base graphics.

Correct Answer is : translate_qplot_base