You are on page 1of 2

R Question Bank

2 Mark Questions

1. State few applications of R-programming.


2. What is R?
3. Write the syntax to install a package in R?
4. What packages are used for data mining in R?
5. List few advantages of data frames.
6. In R how you can import Data?
7. State the uses of Mlr package.
8. Illustrate with the help of an example how to debug an R program.
9. List out some of the function that R provides?
10. Write the method to check current working directory and set the new one.
11. How can you load a .csv file in R?
12. How to load and read the built-in dataset into the R-studio?
13. What are the data structures in R that is used to perform statistical analyses
and create graphs?
14. What is the output when below code is executed?
15. How R commands are written?
16. Why R is popular among mathematicians?
17. Define the concept of user-defined functions.
18. How can you save your data in R?
19. List the features of object oriented programming in R.
20. List the significance of R programming
21. What is the function used for adding datasets in R?
22. Name some functions available in “dplyr” package.
23. What do you mean by generic method in object oriented programming in R?
24. Mention the use of the following symbols in date function.
(i) %a (ii) %B
25. Illustrate the working of looping statements in R with suitable examples.
26. List and explain the three important classes that represent the time span in
R programming with an example.
27. How will you interpret character string as an expression? Explain in detail.
28. With the help of an R program compute the factors of a given number

8 Mark Questions

1. Elucidate the user-defined function in R with suitable example


2. List and explain various statistical functions in R.
3. Elucidate the user-defined function in R with suitable example.
4. Write a recursive function in R to find the factorial of a given number.
5. What is a class? Explain S3 class and its useful functions with the help of a
suitable program.
6. Justify whether R is object-oriented or functional programming language.
7. Discuss about arrays and matrices in R. Write a R program to perform
addition of two matrices.
8. With the help of an R program compute the factors of a given number.
9. Write detailed note on control structures in R-programming.
10. Elaborate on the different methods available in R for handling regular
expressions.
11. Describe in detail about S3 and S4 class in R with examples
12. Elaborate the installation process of R packages from various repositories.
13. Explain how to build your own package in R.
14. Write the step by step procedure to implement a machine learning algorithm
on any data set.
15. Compare and contrast R Programming with other scientific programming
software.
16. Write down the steps to build your own package in R.
17. Discuss in detail about the installation and loading process of R packages from
different repositories.
18. State various math functions available in R with example.
19. Write a program to make a simple calculator that can add, subtract, multiply and
divide using functions.
20. Give a detailed account on copy-on-semantics in R classes.
21. Explain generic functions with examples.
22. Elaborate the installation process of R packages from various repositories.
23. Compare and contrast S3, S4 and reference classes.
24. Explain the control structures available in R.
25. Illustrate on dataframe and arrays with example of a R code.
26. Write R program to generate first n terms of a Fibonacci series
27. Analyse and write in detail about the data manipulation and data visualization
packages in R.
28. Write a program to make a simple calculator that can add, subtract, multiply and
divide using functions in R. The functions should illustrate the usage of default
arguments and named arguments.
29. Construct a linear regression model in R for predicting weight of a person given
his height. Visualize the Regression graphically.

You might also like