logo
  • Home
  • Test & Rank
  • About
  • Training
  • Programming
  • CS
  • IT
  • IS
  • ECE
  • EEE
  • EE
  • Civil
  • Mechanical
  • Chemical
  • Metallurgy
  • Instrumentation
  • Aeronautical
  • Aerospace
  • Biotechnology
  • Mining
  • Marine
  • Agriculture
  • MCA
  • BCA
  • Internship
  • Jobs
  • Contact

R-Programming Multiple Choice Questions | MCQs | Quiz

R Programming Interview Questions and Answers
Pratice R Programming questions and answers for interviews, campus placements, online tests, aptitude tests, quizzes and competitive exams.

Get Started

•   R History - 1
•   R History - 2
•   R Overview - 1
•   R Overview - 2
•   R Overview - 3
•   R Basics - 1
•   R Basics - 2
•   R Basics - 3
•   R Basics - 4
•   Install & Configure
•   Console Evaluation - 1
•   Console Evaluation - 2
•   Data Types - 1
•   Data Types - 2
•   Data Types - 3
•   Data Types - 4
•   Data Types - 5
•   Data Types - 6
•   Data Types - 7
•   Reading Datasets - 1
•   Reading Datasets - 2
•   Textual Data Formats - 1
•   Textual Data Formats - 2
•   Connection Interfaces
•   Subsetting - 1
•   Subsetting - 2
•   Vectorized Operations - 1
•   Vectorized Operations - 2
•   Dplyr Basics - 1
•   Dplyr Basics - 2
•   Control Structures - 1
•   Control Structures - 2
•   Control Structures - 3
•   Functions - 1
•   Functions - 2
•   Functions - 3
•   Functions - 4
•   Functions - 5
•   Functions - 6
•   Functions - 7
•   Functions - 8
•   Dates & Times
•   Scoping Rules - 1
•   Scoping Rules - 2
•   Loop Functions - 1
•   Loop Functions - 2
•   Debugging
•   Debugging Tools
•   Simulation - 1
•   Simulation - 2
•   R Profiler - 1
•   R Profiler - 2
•   ggplot2 - 1
•   ggplot2 - 2
•   ggplot2 - 3
•   Data Wrangling - 1
•   Data Wrangling - 2
•   Exploratory Data Analysis-1
•   Exploratory Data Analysis-2
•   Commands - 1
•   Commands - 2
•   Commands - 3
•   Packages - 1
•   Packages - 2
•   Packages - 3
•   Packages - 4
•   Packages - 5
•   Visualizing Data - 1
•   Visualizing Data - 2
•   Linear Regression - 1
•   Linear Regression - 2
•   Linear Regression - 3
•   Predictive Analytics
•   Distribution - 1
•   Distribution - 2
•   R Graphics - 1
•   R Graphics - 2
•   Neural Networks

Best Reference Books

R Programming Books

R Programming Tests

Certification Test
Internship Test
Job Test
All Tests
Top Rankers
Practice Test 1
Practice Test 2
Practice Test 3
Practice Test 4
Practice Test 5
Practice Test 6
Practice Test 7
Practice Test 8
Practice Test 9
Practice Test 10
Mock Test 1
Mock Test 2
Mock Test 3
Mock Test 4
Mock Test 5
Mock Test 6
Mock Test 7
Mock Test 8
Mock Test 9
Mock Test 10
« Prev Page
Next Page »

R Programming Questions and Answers – Packages – 4

Posted on July 12, 2015 by Manish

This set of R Programming Language Multiple Choice Questions & Answers (MCQs) focuses on “Packages – 4”.

1. What will be the output of the following R code?

advertisement
install.packages(c("devtools", "roxygen2"))

a) Develops the tools
b) Exits R studio
c) Installs the given packages
d) Nothing happens
View Answer

Answer: c
Explanation: Make sure you have the latest version of R and then run the above code to get the packages you’ll need. It installs the given packages. Confirm that you have a recent version of RStudio.

2. Which of the following is the formal requirement?
a) Package
b) Function
c) Letters
d) Interfaces
View Answer

Answer: c
Explanation: There are three formal requirements: the name can only consist of letters, numbers and periods, i.e., it must start with the letter and it should not end with a period.

3. To start with the new package in RStudio, double-click the pkgname.Rproj file that _______
a) Delete()
b) Create()
c) Run()
d) Exit()
View Answer

Answer: b
Explanation: To get started with your new package in RStudio, double-click the pkgname.Rproj file that create() just made. This will open a new RStudio project for your package. Projects are the way to develop packages.
advertisement

4. If you have an existing package that doesn’t have an .Rproj file, you can use devtools for the use_rstudio(“_____/to/package”) to add it.
a) Path
b) Package
c) Function
d) Class
View Answer

Answer: a
Explanation: If you have an existing package that doesn’t have an .Rproj file, you can use devtools for the use_rstudio(“path/to/package”) to add it.

5. An .Rproj file is a ____ file.
a) Pdf
b) Jpeg
c) Text
d) Png
View Answer

Answer: c
Explanation: An .Rproj file is a text file. If you don’t use RStudio, you can get many of the benefits by starting a new R session and ensuring that the directory is set to the package directory.

6. A bundled package is a package that’s been compressed into a ______ file.
a) Double
b) Triple
c) Single
d) No file
View Answer

Answer: c
Explanation: A bundled package is a package that’s been compressed into a single file. A source package is just a directory with components like R/, DESCRIPTION, and so on.

7. ________ are built in R so that you get HTML.
a) Vignettes
b) Vighnaants
c) Bignats
d) Viddnets
View Answer

Answer: a
Explanation: Vignettes are built for getting the HTML and PDF output instead of Markdown or LaTeX input. A bundled package is a package that’s been compressed into a single file.

8. Which of the following package has temporary files?
a) Single
b) Source
c) Bundle
d) Double
View Answer

Answer: b
Explanation: Source package might contain temporary files used to save time during development and the compilation artifacts in a source. These will be never found in a bundle.
advertisement

9. files listed in the Rbuildignore are not included in the ______
a) single
b) source
c) bundle
d) double
View Answer

Answer: c
Explanation: Files listed in the Rbuildignore were not included in the bundle. .Rbuildignore prevents files from the src package and appearing in the bundled package. It allows you to have some extra directories in your source package that will not be included in the package bundle.

10. .Rbuildignore prevents files in the ___________ package from appearing in the bundled package.
a) single
b) source
c) bundle
d) double
View Answer

Answer: b
Explanation: .Rbuildignore prevents files from the source package and appearing in the bundled package. It allows to have some extra directories in your source package that will not be included in the package bundle.

Sanfoundry Global Education & Learning Series – R Programming Language.

Here’s the list of Best Reference Books in R Programming Language .

To practice all areas of R Programming Language, Here is complete set of 1000+ Multiple Choice Questions and Answers.
« Prev Page - R Programming Questions and Answers – Packages – 3
» Next Page - R Programming Questions and Answers – Packages – 5

« R Programming Questions and Answers – Packages – 3
R Programming Questions and Answers – Packages – 5 »
advertisement

Deep Dive @ Sanfoundry:

  1. C# Programming Examples on LINQ
  2. Java Programming Examples on Networking
  3. Java Programming Examples on Java.Lang
  4. Java Programming Examples on Inheritance
  5. C# Programming Examples
  6. Java Programming Examples
  7. R Programming Questions and Answers
  8. Java Programming Examples on File Handling
  9. C# Programming Examples on Files
  10. C Programming Examples on File Handling
Manish Bhojasia
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Facebook | Twitter

Best Careers

Developer Tracks
SAN Developer
Linux Kernel Developer
Linux Driver Developer
Linux Network Developer

Live Training Photos
Mentoring
Software Productivity
GDB Assignment
Sanfoundry is No. 1 choice for Deep Hands-ON Trainings in SAN, Linux & C, Kernel Programming. Our Founder has trained employees of almost all Top Companies in India such as VMware, Citrix, Oracle, Motorola, Ericsson, Aricent, HP, Intuit, Microsoft, Cisco, SAP Labs, Siemens, Symantec, Redhat, Chelsio, Cavium, ST-Micro, Samsung, LG-Soft, Wipro, TCS, HCL, IBM, Accenture, HSBC, Mphasis, Tata-Elxsi, Tata VSNL, Mindtree, Cognizant and Startups.

Best Trainings

SAN I - Technology
SAN II - Admin
Linux Fundamentals
Advanced C Training
Linux-C Debugging
System Programming
Network Programming
Linux Threads
Kernel Programming
Kernel Debugging
Linux Device Drivers

Best Reference Books

Computer Science Books
Algorithm & Programming Books
Electronics Engineering Books
Electrical Engineering Books
Chemical Engineering Books
Civil Engineering Books
Mechanical Engineering Books
Industrial Engineering Books
Instrumentation Engg Books
Metallurgical Engineering Books
All Stream Best Books

Questions and Answers

1000 C Questions & Answers
1000 C++ Questions & Answers
1000 C# Questions & Answers
1000 Java Questions & Answers
1000 Linux Questions & Answers
1000 Python Questions
1000 PHP Questions & Answers
1000 Hadoop Questions
Cloud Computing Questions
Computer Science Questions
All Stream Questions & Answers

India Internships

Computer Science Internships
Instrumentation Internships
Electronics Internships
Electrical Internships
Mechanical Internships
Industrial Internships
Systems Internships
Chemical Internships
Civil Internships
IT Internships
All Stream Internships

About Sanfoundry

About Us
Copyright
Terms
Privacy Policy
Jobs
Bangalore Training
Online Training
Developers Track
Mentoring Sessions
Contact Us
Sitemap
© 2011 Sanfoundry. All Rights Reserved.