R Programming MCQs with answers Page - 11

Here, you will find a collection of MCQ questions on R Programming. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. Which of the following is a base package for R language?

  • (A) util
  • (B) lang
  • (C) tools
  • (D) spatial

A

Admin • 833.24K Points
Coach

Q. What is the function to set column names for a matrix?

  • (A) names()
  • (B) colnames()
  • (C) col.names()
  • (D) column name cannot be set for a matrix

A

Admin • 833.24K Points
Coach

Q. What will be the output of the following R code?
x<- c (“a”,” b”)
as.numeric(x)

  • (A) [1] 1 2
  • (B) [1] TRUE TRUE
  • (C) [1] NA NA (Warning message: NAs introduced by coercion)
  • (D) [1] NAN

A

Admin • 833.24K Points
Coach

Q. Files containing R scripts ends with extension . . . . . . . .

  • (A) .S
  • (B) .R
  • (C) .Rp
  • (D) .SP

A

Admin • 833.24K Points
Coach

Q. R has many functions regarding . . . . . . . .

  • (A) Statistics, Biotechnology
  • (B) Probability, Microbiology
  • (C) Distributions, Physics
  • (D) Statistics, Probability, Distributions

A

Admin • 833.24K Points
Coach

Q. In R language, a vector is defined that it can only contain objects of the . . . . . . . .

  • (A) Same class
  • (B) Different class
  • (C) Similar class
  • (D) Any class

A

Admin • 833.24K Points
Coach

Q. Which of the following can be used to display the names of (most of) the objects which are currently stored within R?

  • (A) object()
  • (B) objects()
  • (C) list()
  • (D) class()

A

Admin • 833.24K Points
Coach

Q. Which language is best for the statistical environment?

  • (A) C
  • (B) R
  • (C) Java
  • (D) Python

A

Admin • 833.24K Points
Coach

Q. What will be the output of the following R function?
Sys.Date()

  • (A) Tomorrow date
  • (B) Present date
  • (C) Some date
  • (D) Yesterday date

A

Admin • 833.24K Points
Coach

Q. Which of the following is "Recommended" package in R?

  • (A) util
  • (B) lang
  • (C) stats
  • (D) spatial

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ