R Programming Language MCQ Test: R Programming Language MCQs - Practice Questions
1. What is the purpose of the 'rvest' package in R, and how is it used for web scraping?
2. Explain the concept of 'RMarkdown' and how it enhances the process of creating dynamic documents in R.
3. What is the purpose of the 'lm()' function in R?
4. What is the purpose of the 'grep()' function in R?
5. What is the purpose of the 'data.frame()' function in R?
6. In R, what does the 'length()' function measure?
7. What is the purpose of the 'purrr' package in R, and how does it differ from base R functions?
8. What does the 'tapply()' function in R do?
9. Examine the concept of 'vectorization' in R and its impact on code performance.
10. What does the 'summary()' function provide for a data frame in R?
11. In R, what does the 'data.frame()' function do?
12. What is 'memoization' in the context of R programming, and how can it improve the efficiency of recursive functions?
13. How can you generate a sequence of numbers in R?
14. In R, how do you access the second element of a vector named 'my_vector'?
15. What does the 'class()' function in R provide information about?
16. In R, explain the difference between '<<-' and '->>' assignment operators.
17. Explain the concept of 'environments' in R and how they contribute to scoping.
18. How can you install a new package in R using the 'install.packages()' function?
19. What is the purpose of the 'runif()' function in R?
20. What is the significance of the 'apply()' family of functions in R, and how do they differ from traditional loops?