Total Questions : 40
Expected Time : 40 Minutes

1. What does the 'str()' function display in R?

2. Explain the purpose of the 'attach()' function in R and its impact on variable scoping.

3. In R, how do you write a 'for' loop that iterates from 1 to 5?

4. What does the 'str()' function in R do?

5. How can you check if a variable 'x' is numeric in R?

6. What is the primary use of the 'print()' function in R?

7. What is the purpose of the 'rvest' package in R, and how is it used for web scraping?

8. How can you generate a sequence of numbers in R?

9. What is the significance of the 'apply()' family of functions in R, and how do they differ from traditional loops?

10. In R, how can you calculate the standard deviation of a vector?

11. How can you remove missing values from a data frame in R?

12. Explain the purpose of the 'caret' package in R, and how does it simplify the process of building predictive models?

13. In R, what does the 'merge()' function do?

14. What is 'memoization' in the context of R programming, and how can it improve the efficiency of recursive functions?

15. What does the 'aggregate()' function in R do?

16. How can you read a CSV file into a data frame in R?

17. In R, how can you extract the unique values from a vector 'x'?

18. What is the purpose of the 'Rmarkdown' package in R, and how does it enhance reproducibility in data analysis?

19. What is the purpose of the 'shiny' package in R, and how is it used for interactive web applications?

20. How can you generate a random sample of size 'n' from a vector 'x' in R?

21. Explain the concept of 'RMarkdown' and how it enhances the process of creating dynamic documents in R.

22. What does the 'boxplot()' function in R visualize?

23. What function is used to remove missing values from a data frame in R?

24. What is the purpose of the 'purrr' package in R, and how does it differ from base R functions?

25. What is lazy evaluation, and how does it impact the execution of R code?

26. In R, how can you check if a variable is NULL?

27. Explain the concept of 'Rcpp' in R and how it facilitates the integration of C++ code.

28. What is the purpose of the 'rep()' function in R?

29. In R, what is the purpose of the 'sparklyr' package, and how does it enable the integration of Apache Spark with R?

30. How can you create a simple scatter plot in R using the 'plot()' function?

31. What does the 'grep()' function do in R?

32. What is the purpose of the 'data.table' package in R, and how does it differ from base R data frames?

33. What is the purpose of the 'mean()' function in R?

34. Explain the concept of 'closures' in R and provide an example of their use.

35. In R, how do you access the second element of a vector named 'my_vector'?

36. In R, what is the purpose of the 'tryCatch()' function, and how does it differ from 'try()'?

37. How do you concatenate two vectors 'a' and 'b' in R?

38. In R, what does the 'data.frame()' function do?

39. What is 'unit testing' in R, and why is it crucial for ensuring the reliability of code?

40. What does the 'hist()' function in R visualize?