R Programming MCQs with answers Page - 7

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. What will be the output of the following R function?
cat("Everybody", "is", "a", “warrior”,sep="*")

  • (A) "Everybody", "is", "a" , "warrior"
  • (B) Everybody*is*a*warrior
  • (C) Everybody", "is", "a" , "warrior
  • (D) "Everybody*is*a*warrior"

A

Admin • 833.24K Points
Coach

Q. A list is represented as a vector but can contain objects of . . . . . . . .

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

A

Admin • 833.24K Points
Coach

Q. Full Form of GUI is . . . . . . . .

  • (A) Guided User Interface
  • (B) Graphical User Interface
  • (C) Guided Used Interface
  • (D) Graphical User Interval

A

Admin • 833.24K Points
Coach

Q. In 1991, R was created by Ross Ihaka and Robert Gentleman in the Department of Statistics at the University of . . . . . . . .

  • (A) John Hopkins
  • (B) California
  • (C) Harvard
  • (D) Auckland

A

Admin • 833.24K Points
Coach

Q. What will be the output of the following R function?
d <- date()
d

  • (A) Prints todays date
  • (B) Prints some date
  • (C) Prints exact present time and date
  • (D) Error

A

Admin • 833.24K Points
Coach

Q. What will be the output of the following R code?
options(digits = 16)
20/6

  • (A) 3.33
  • (B) 3.333
  • (C) 3.3333333
  • (D) 3.3333333333333333

A

Admin • 833.24K Points
Coach

Q. Point out the wrong statement?

  • (A) R is a language for data analysis and graphics
  • (B) K is language for statistical modelling and graphics
  • (C) One key limitation of the S language was that it was only available in a commercial package, S-PLUS
  • (D) C is a language for data and graphics

A

Admin • 833.24K Points
Coach

Q. Elementary commands in R consist of either . . . . . . . . or assignments.

  • (A) utilstats
  • (B) language
  • (C) expressions
  • (D) packages

A

Admin • 833.24K Points
Coach

Q. What will be the output of the following R code?
> x <- 1
> print(x)

  • (A) 1
  • (B) 2
  • (C) 3
  • (D) 5

A

Admin • 833.24K Points
Coach

Q. Collection of objects currently stored in R is called as . . . . . . . .

  • (A) package
  • (B) workspace
  • (C) list
  • (D) task