R Programming MCQ Questions

R Programming MCQ Questions

  • Satyam Jaiswal
  • 22nd Nov, 2021

We are introducing here the best R Programming MCQ Questions, which are very popular & asked various times. This Quiz contains the best 25+ R Programming MCQ with Answers, which cover the important topics of R Programming so that, you can perform best in R Programming exams, interviews, and placement activities.

R Programming MCQ Questions and Answers

1) The __________ function returns a list of all the formal arguments of a function.

  • A. formal()
  • B.funct()
  • C.formals()
  • D.fun()

2) Which function help check to see whether an R object is NULL with the _________ .

  • A. is.null()
  • B.null()
  • C.as.nullobj()
  • D.is.nullobj()

3) Which of the following code will print NULL?

  • A. >arg(bin)
  • B.>arg(paste)
  • C.>args(pastebin)
  • D.>args(paste)

4) What will be the output of the following R code snippet? > paste("a", "b", sep = ":")

  • A. a*b
  • B.“a+b”
  • C.“a:b”
  • D.None of the above

5) _____ programming language is a dialect of S.

  • A. L
  • B.N
  • C.R
  • D.T

6) In 1991, R was created by Ross Ihaka and Robert Gentleman in the Department of Statistics at the University of _________

  • A. Auckland
  • B.Harvard
  • C.California
  • D.None of the above

7) R version 1.0.0 was released to the public _______.

  • A. 2004
  • B.2000
  • C.2006
  • D.1998

8) R is technically much closer to the Scheme language than it is to the original _____ language.

  • A. C
  • B.C++
  • C.S
  • D.K

9) In which year R-Core group was formed?

  • A. 1991
  • B.1995
  • C.1997
  • D.1999

10) R runs on the ____________ operating system.

  • A. Linux
  • B.Ubuntu
  • C.Windows
  • D.All of the above

11) Which of the following packages does not contain in “base” R system?

  • A. splines, stats4
  • B.mesh, compiler
  • C.splines, stats4
  • D.All of the above

12) Which of the following command is used to print an object “x” in R?

  • A. print(x)
  • B.print{x}
  • C.printx
  • D.All of the above

13) R functionality is divided into a number of ________

  • A. Domains
  • B.Classes
  • C.Packages
  • D.Functions

14) _________ package contains most fundamental functions to run R?

  • A. parent
  • B.child
  • C.root
  • D.base

15) S’s base graphics system allows for very fine control over essentially every aspect of a plot or graph.

  • A. True
  • B.False

16) ______ operator is used to create integer sequences.

  • A. ;
  • B.:
  • C.@
  • D.-

17) In R , a vector is defined that it can only contain objects of the ________

  • A. Different class
  • B.Same class
  • C.Any class
  • D.None of the above

18) ________ can define ‘undefined value’ in R language.

  • A. NaN
  • B.Inf
  • C.Sup
  • D.None of the above

19) NaN stands for _____ .

  • A. Not and Number
  • B.Number and Number
  • C.Not a Number
  • D.Numeric a Number

20) _______ define ‘infinity’ in R.

  • A. SuP
  • B.Inf
  • C.NaN
  • D.All of the above

21) Matrices can be created by row-binding with the help of the _________ function.

  • A. rjoin()
  • B.rbind()
  • C.rowbind()
  • D.None of the above

22) __________ function is used to test objects if they are NaN.

  • A. as.nan()
  • B.s.nan()
  • C.is.nan()
  • D.None of the above

23) q() is used to quit the R program.

  • A. True
  • B.False

24) Which of the following will start the R program?

  • A. @ R
  • B.- R
  • C./ R
  • D.$ R

25) The help.search() command allows searching for help in various ways.

  • A. True
  • B.False

26) The help.search() command allows searching for help in various ways.

  • A. True
  • B.False

27) What is the length of b? b <- 2:7

  • A. 4
  • B.7
  • C.6
  • D.9

28) How many atomic vector types does R have?

  • A. 4
  • B.6
  • C.7
  • D.12

29) ________ is the function to set row names for a data frame.

  • A. row.names()
  • B.row.namespace()
  • C.row.nam()
  • D.None of the above

30) Is It possible to inspect the source code of R?

  • A. Yes
  • B.No
  • C.May be
  • D.Can't say

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.