11. What is the role of the rep() function in R?
12. How do you check the data type of a variable in R?
13. What is the output of 5 %% 2 in R?
14. In R, how do you round a numeric value to the nearest integer using the round() function?
15. What does the scan() function do in R?
16. What function is used to calculate the square root of a number in R?
17. In R, what does the function toupper("hello") return?
18. What is the result of sum(1:5) in R?
19. How is the maximum value of a numeric vector calculated in R using the max() function?
20. In R, what does the function tolower("WORLD") return?
Read More Section(R Programming Basics)
Each Section contains maximum 100 MCQs question on R Programming Basics. To get more questions visit other sections.