R Programming MCQs with answers Page - 3

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 • 802.91K Points
Coach

Q. R is mostly used in . . . . . . . .

  • (A) Problem solving
  • (B) Statistics
  • (C) Probability
  • (D) All of the mentioned

A

Admin • 802.91K Points
Coach

Q. What will be the output of the following R function?
ab <- list(1, 2, 3, "X", "Y", "Z")
dim(ab) <- c(3,2)
print(ab)

  • (A) 1 "X" 2 "Y" 3 " Z"
  • (B) 1 "X" 2 "Y" 3 " Y"
  • (C) 1 "W" 2 "Y" 3 " Z"
  • (D) Error

A

Admin • 802.91K Points
Coach

Q. Point out the wrong statement?

  • (A) Key feature of R was that its syntax is very similar to S
  • (B) R runs only on Windows computing platform and operating system
  • (C) R has been reported to be running on modern tablets, phones, PDAs, and game consoles
  • (D) R functionality is divided into a number of Packages

A

Admin • 802.91K Points
Coach

Q. They primary R system is available from the . . . . . . . .

  • (A) CRAN
  • (B) CRWO
  • (C) GNU
  • (D) CRDO

A

Admin • 802.91K Points
Coach

Q. What is the function used to test objects (returns a logical operator) if they are NaN?

  • (A) as.nan()
  • (B) is.na()
  • (C) as.na()
  • (D) is.nan()

A

Admin • 802.91K Points
Coach

Q. Dataframes can be converted into a matrix by calling the following function data . . . . . . . .

  • (A) matr()
  • (B) matrix()
  • (C) matrixf()
  • (D) matrixfunc()

A

Admin • 802.91K Points
Coach

Q. Advanced programmers can write . . . . . . . . code to manipulate R objects.

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

A

Admin • 802.91K Points
Coach

Q. What will be the output of the following R code?
y <- c(TRUE, 2)

  • (A) [1] "TRUE" "2"
  • (B) [1] "TRUE" 2
  • (C) [1] "0" "2"
  • (D) [1] 1 2

A

Admin • 802.91K Points
Coach

Q. Point out the WRONG statement?

  • (A) Early versions of the S language contain functions for statistical modeling
  • (B) The book Programming with Data by John Chambers documents S version of the language
  • (C) In 1993 Bell Labs gave StatSci (later Insightful Corp.) an exclusive license to develop and sell the S language
  • (D) The book Programming with Data by IBM documents S version of the language

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