Vidyalelo
R Programming · all questions

Introduction to R Programming
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

155

Questions

1/8

Page

Pick an option on a question to see the right answer and solution.

What is the primary purpose of R programming language?

Select an option to see the answer and solution.

In R, what does the function length() do?

Select an option to see the answer and solution.

How is a comment denoted in R?

Select an option to see the answer and solution.

What does the function install.packages() do in R?

Select an option to see the answer and solution.

Which of the following is a correct variable name in R?

Select an option to see the answer and solution.

What does RStudio provide for R programming?

Select an option to see the answer and solution.

In R, how is a matrix created using the matrix() function?

Select an option to see the answer and solution.

What is the purpose of the function Sys.Date() in R?

Select an option to see the answer and solution.

Which of the following is a valid R data type?

Select an option to see the answer and solution.

How is a data frame created in R?

Select an option to see the answer and solution.

What does the R function read.csv() do?

Select an option to see the answer and solution.

How do you assign a value to a variable in R?

Select an option to see the answer and solution.

Which of the following operators is used for exponentiation in R?

Select an option to see the answer and solution.

In R, what does the function help.start() do?

Select an option to see the answer and solution.

What does the function summary() do in R?

Select an option to see the answer and solution.

What does the R function seq(1, 10, by = 2) produce?

Select an option to see the answer and solution.

How do you check the class of an object in R?

Select an option to see the answer and solution.

What is the purpose of the R function rnorm(100, mean = 0, sd = 1)?

Select an option to see the answer and solution.

Which operator is used for element-wise multiplication in R?

Select an option to see the answer and solution.

In R, what is the purpose of the rep() function?

Select an option to see the answer and solution.