250+ TOP MCQs on Overview of R and Answers

R Programming Language Multiple Choice Questions on “Overview of R”.

1. They primary R system is available from the ______
a) CRAN
b) CRWO
c) GNU
d) CRDO

Answer: a
Clarification: CRAN stands for Comprehensive R Archive Network.

2. 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

Answer: b
Clarification: R runs on almost any standard computing platform and operating system.

3. R functionality is divided into a number of ________
a) Packages
b) Functions
c) Domains
d) Classes

Answer: a
Clarification: CRAN also hosts many add-on packages that can be used to extend the functionality of R.

4. Which Package contains most fundamental functions to run R?
a) root
b) child
c) base
d) parent

Answer: c
Clarification: base package in R contains the most fundamental functions.

5. 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

Answer: c
Clarification: R has maintained the original S philosophy, which is that it provides a language that is both useful for interactive work, but contains a powerful programming language for developing new tools.

6. Which of the following is a base package for R language?
a) util
b) lang
c) tools
d) spatial

Answer: c
Clarification: The other packages contained in the “base” system include utils, stats, datasets, graphics, grDevices, grid, methods, parallel, compiler, splines, tcltk, stats4.

7. Which of the following is “Recommended” package in R?
a) util
b) lang
c) stats
d) spatial

Answer: d
Clarification: “Recommended” packages also include boot, class, cluster, codetools, foreign, KernSmooth, lattice, mgcv, nlme, rpart, survival, MASS, nnet, Matrix.

8. What is the output of getOption(“defaultPackages”) in R studio?
a) Installs a new package
b) Shows default packages in R
c) Error
d) Nothing will print

Answer: b
Clarification: There are base packages (which come with R automatically), and contributed packages. The base packages are maintained by a select group of volunteers called R Core. In addition to the base packages, there are over ten thousand additional contributed packages written by individuals all over the world.

9. Advanced users can write ___ code to manipulate R objects directly.
a) C, C++
b) C++, Java
c) Java, C
d) Java

Answer: a
Clarification: For computationally-intensive tasks, C, C++ and Fortran code can be linked and called at run time.

10. Which of the following is used for Statistical analysis in R language?
a) RStudio
b) Studio
c) Heck
d) KStudio

Answer: a
Clarification: RStudio is a web application framework for R.

Leave a Reply

Your email address will not be published. Required fields are marked *