R Programming MCQs with answers Page - 117

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. Is It possible to inspect the source code of R?

  • (A) Yes
  • (B) No
  • (C) Can't say
  • (D) Some times

A

Admin • 833.24K Points
Coach

Q. In the expression x <- 4 in R, what is the class of 'x' as determined by the `class()' function?

  • (A) Character
  • (B) Numeric
  • (C) Integer
  • (D) Word

A

Admin • 833.24K Points
Coach

Q. How can we define 'infinity' in R language?

  • (A) Inf
  • (B) Sup
  • (C) Und
  • (D) NaN

A

Admin • 833.24K Points
Coach

Q. Point out the wrong statement?

  • (A) One nice feature that R shares with many popular open source projects is frequent releases
  • (B) R has sophisticated graphics capabilities
  • (C) S's base graphics system allows for very fine control over essentially every aspect of a plot or graph
  • (D) All of the mentioned

A

Admin • 833.24K Points
Coach

Q. What is the mode of 'a' in the following R code?
a <- c(1,” a”, FALSE)

  • (A) Numeric
  • (B) Character
  • (C) Integer
  • (D) Logical

A

Admin • 833.24K Points
Coach

Q. How is a character string defined in R?

  • (A) "Hello, World!"
  • (B) 'Hello, World!'
  • (C) c("Hello", "World")
  • (D) char("Hello, World!")

A

Admin • 833.24K Points
Coach

Q. How is a data frame created in R?

  • (A) df <- c(1, 2, 3)
  • (B) data.frame(x = 1:3, y = c('A', 'B', 'C'))
  • (C) createDataFrame(1, 2, 3)
  • (D) matrix(1:3, nrow = 1, ncol = 3)

A

Admin • 833.24K Points
Coach

Q. Point out the correct statement?

  • (A) Character strings are entered using either matching double (") or single (') quotes
  • (B) Character vectors may be concatenated into a vector by the c() function
  • (C) Subsets of the elements of a vector may be selected by appending to the name of the vector an index vector in square brackets
  • (D) All of the mentioned

A

Admin • 833.24K Points
Coach

Q. Which of the following is a 3-dimensional dataset?

  • (A) Eris
  • (B) Iris
  • (C) Toris
  • (D) None of the above

A

Admin • 833.24K Points
Coach

Q. Which of the following object is masked from 'package: stats'?

  • (A) filter
  • (B) union
  • (C) set difference
  • (D) get difference

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