# R Language Interview Question-Answer Part – 3

Updated on:

R Language Interview Question- – 1

R Language Interview Question- – 2

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

Ans : Lists

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

Ans : Matrix

Q.3 What is the simplest way of creating the vector?

A. C function

B. Create

C. Destroy

D. Invalid

Ans : C function

Q.4 Which function replicates elements of vectors?

A. C

B. Rep

C. Crep

D. Grep

Ans : Rep

Q.5 The ________ function creates a regular sequence of values to form a vector.

A. sequel

B. Rep

C. seq

D. Grep

Ans : seq

Q.6 Which function is used to enter in data at the terminal?

A. Scanned

B. Scnn

C. Scan

D. Sccn

Ans : Scan

Q.7 Computation with vectors is achieved using an element-by-element operation for avoiding _________.

A. Loops

B. Functions

C. Packages

D. Interfaces

Ans : Loops

Q.8 To bind a row onto an already existing matrix, the ______ function can be used.

A. Rbind

B. Sbnd

C. Gbind

D. Sbind

Ans : Rbind

Q.9 Which of the following is a 3-dimensional dataset?

A. Eris

B. Iris

C. Toris

D. Irisss

Ans : Iris

Q.10 Which dimension corresponds to the explanatory variables collected for each species?

A. First

B. Second

C. Third

D. Fifth

Ans : Second

Q.11 Using the ________ vector, we create a species factor and bind it to the columns of iris.df.

A. rnames

B. snames

C. jnames

D. fnames

Ans : snames

Q.12 Accessing elements is achieved through a process called ________.

A. Outdexing

B. Indexing

C. Highlighting

D. Scrapping

Ans : Indexing

Q.13 Which are indexed by either row or column using a specific name or number?

A. Datasets

B. Data frames

C. Data

D. Functions

Ans : Data frames

Q.14 What should we use to access elements with a value greater than five?

A. Subsetting commands

B. Use functions

C. Packages

D. Interfaces

Ans : Subsetting commands

Q.15 Lists can be created using the _______ function.

A. Matrix.li

B. Matrix.lists

C. Lists.matric

D. List

Ans : List

Q.16 First component of the list can be accessed by _____________.

A. Name of the component

B. List name

C. Function

D. Package

Ans : Name of the component

Q.17 How can we access the first component of the list?

A. Number of the position

B. Function

C. Package

D. Tools

Ans : Number of the position

Q.18 The first component can be accessed using __________ operator.

A. Intraction

B. Extraction

C. AND

D. OR

Ans : Extraction

Q.19 To extract a sublist, we use _________ brackets.

A. Flower

B. Square

C. Double

D. Single

Ans : Single

Q.20 The length of a list is ______ to the number of components in that list.

A. Double

B. Equal

C. Triple

D. One fourth

Ans : Equal

Q.21 Which function can be used to determine the names assigned to a list?

A. Names

B. Name

C. Nam

D. Nem

Ans : Names

Q.22 Joining two lists can be achieved either using the _________ function.

A. Concat

B. Join

C. Reduce

D. Delete

Ans : Concat

Q.23 Which function gives the list as output?

A. Spline

B. Matrix

C. Vector

D. Alphabet

Ans : Spline

Q.24 Density function gives output as ________.

A. Matrix

B. Lists

C. Vector

D. Number

Ans : Lists

Q.25 Locator function gives output as ___________.

A. Matrix

B. Lists

C. Vector

D. Number

Ans : Lists

Q.26 The _________ function returns a list of densities (y) corresponding to bin values (x).

A. Spline

B. Density

C. Lists

D. Locator

Ans : Spline

R Language Interview Question- – 1

R Language Interview Question- – 2

## Related Post

Q.1 _____________ is a Java-based application that enables Birst to connect to any data source.        A. Birst Space        B. Birst Connect   ...