Explore topic-wise MCQs in R Programming.

This section includes 15 Mcqs, each offering curated multiple-choice questions to sharpen your R Programming knowledge and support exam preparation. Choose a topic below to get started.

1.

__________are Data frames which contain lists of homogeneous data in a tabular format.

A. Matrix
B. Vector
C. Lists
D. Array
Answer» D. Array
2.

In R using the function, ________ one can check the data type of vector.

A. Typeof()
B. Castof()
C. Function()
D. C()
Answer» B. Castof()
3.

Which is the basic data structure of R containing the same type of data?

A. Functions
B. Array
C. Vector
D. Lists
Answer» D. Lists
4.

Decimal values are referred as ________ data types in R.

A. Numeric
B. Character
C. Integer
D. Lists
Answer» B. Character
5.

Data frames can have additional attributes such as __________

A. Rowname()
B. Rownames()
C. R.names()
D. D.names()
Answer» C. R.names()
6.

A data frame is a special type of list where every element of the list has ______ length.

A. Same
B. Different
C. May be different
D. May be same
Answer» B. Different
7.

Lists can be coerced with which function?

A. As.lists
B. Has.lists
C. In.lists
D. Co.lists
Answer» B. Has.lists
8.

vectors can be one of two types namely atomic vectors and _______

A. Matrix
B. Vector
C. Lists
D. Array
Answer» D. Array
9.

By what function we can create data frames?

A. Data.frames()
B. Data.sets ()
C. Function ()
D. C ()
Answer» B. Data.sets ()
10.

Factors are created using the _______ function.

A. C()
B. Function()
C. Array()
D. Lists()
Answer» C. Array()
11.

Factors are the r-objects which are created using a _________

A. Vector
B. Matrix
C. Lists
D. Array
Answer» B. Matrix
12.

Which function takes a dim attribute which creates the required number of dimensions?

A. Vector
B. Array
C. Matrix
D. Lists
Answer» C. Matrix
13.

A _________ is a two-dimensional rectangular data set.

A. Vector
B. Lists
C. Matrix
D. Functions
Answer» D. Functions
14.

A __________ is an R-object which can contain many different types of elements inside it.

A. Vector
B. Lists
C. Matrix
D. Functions
Answer» C. Matrix
15.

Which function is used to combine the elements into a vector?

A. C()
B. D()
C. E()
D. F()
Answer» B. D()