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 – Data Types – 6

Posted on July 12, 2015 by Manish

This set of R Programming Questions & Answers for Exams focuses on “Data Types – 6”.

1. The four most frequently used types of data objects in R are vectors, matrices, data frames and ________
a) Function
b) Lists
c) Packages
d) Interfaces
View Answer

Answer: b
Explanation: The four most frequently used types of data objects in R are vectors, matrices, data frames and lists. A list is a generalisation of a vector and represents a collection of data objects.
advertisement

2. A __________ is a set of elements appearing in rows and columns where the elements are of the same mode whether they are logical, numeric (integer or double), complex or character.
a) Vector
b) Matrix
c) Lists
d) Data frames
View Answer

Answer: b
Explanation: A matrix is a set of elements appearing in rows and columns where the elements are of the same mode whether they are logical, numeric (integer or double), complex or character.

3. What is the simplest way of creating the vector?
a) C function
b) Create
c) Destroy
d) Invalid
View Answer

Answer: a
Explanation: The simplest way to create a vector is through the concatenation function, c. This function binds elements together, whether they are of character form, numeric or logical.

4. Which function replicates elements of vectors?
a) C
b) Rep
c) Crep
d) Grep
View Answer

Answer: b
Explanation: The rep function replicates elements of vectors. The seq function creates a regular sequence of values to form a vector. The four most frequently used types of data objects in R are vectors, matrices, data frames and lists.

5. The ________ function creates a regular sequence of values to form a vector.
a) sequel
b) Rep
c) seq
d) Grep
View Answer

Answer: c
Explanation: The rep function replicates elements of vectors. The seq function creates a regular sequence of values to form a vector. The four most frequently used types of data objects in R are vectors, matrices, data frames and lists.
advertisement

6. Which function is used to enter in data at the terminal?
a) Scanned
b) Scnn
c) Scan
d) Sccn
View Answer

Answer: c
Explanation: The scan function is used to enter data at the terminal. This is useful for small datasets but tiresome for entering in large datasets.

7. Computation with vectors is achieved using an element-by-element operation for avoiding _________
a) Loops
b) Functions
c) Packages
d) Interfaces
View Answer

Answer: a
Explanation: Computation with vectors is achieved using an element-by-element operation. This is useful when writing code because it avoids ’for loops’.

8. To bind a row onto an already existing matrix, the ______ function can be used.
a) Rbind
b) Sbnd
c) Gbind
d) Sbind
View Answer

Answer: a
Explanation: To bind a row onto an already existing matrix, the rbind function can be used. The scan function is used to enter data at the terminal.

9. Which of the following is a 3-dimensional dataset?
a) Eris
b) Iris
c) Toris
d) Iris
View Answer

Answer: b
Explanation: The iris dataset is a three dimensional dataset. One dimension is represented for each species: Setosa, Versicolor and Virginica.

10. Which dimension corresponds to the explanatory variables collected for each species?
a) First
b) Second
c) Third
d) Fifth
View Answer

Answer: b
Explanation: The second dimension corresponds to the explanatory variables collected for each species. The third dimension corresponds to the species.
advertisement

11. Using the ________ vector, we create a species factor and bind it to the columns of iris.df.
a) snames
b) rnames
c) jnames
d) fnames
View Answer

Answer: a
Explanation: Using the Snames vector, we create a species factor and bind it to the columns of iris.df. The iris dataset is a three dimensional dataset.

Sanfoundry Global Education & Learning Series – R Programming Language.

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

To practice all exam questions on R Programming, Here is complete set of 1000+ Multiple Choice Questions and Answers.
« Prev Page - R Programming Questions and Answers – Data Types – 5
» Next Page - R Programming Questions and Answers – Data Types – 7

« R Programming Questions and Answers – Data Types – 5
R Programming Questions and Answers – Data Types – 7 »
advertisement

Deep Dive @ Sanfoundry:

  1. C Programming Examples on Linked List
  2. Python Programming Examples on Linked Lists
  3. Java Programming Examples
  4. R Programming Questions and Answers
  5. C++ Programming Examples on STL
  6. Java Programming Examples on Collections
  7. C# Programming Examples on Data Structures
  8. Java Programming Examples on Data-Structures
  9. C++ Programming Examples on Data-Structures
  10. C Programming Examples on Data-Structures
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.