Explore topic-wise MCQs in R Programming.

This section includes 7 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.

What is the function to set column names for a matrix?

A. names()
B. colnames()
C. col.names()
D. column name cannot be set for a matrix
Answer» C. col.names()
2.

What is the function used to test objects (returns a logical operator) if they are NaN?

A. as.nan()
B. is.na()
C. as.na()
D. is.nan()
Answer» E.
3.

What is the function used to test objects (returns a logical operator) if they are NA?

A. is.na()
B. is.nan()
C. as.na()
D. as.nan()
Answer» B. is.nan()
4.

Matrices can be created by row-binding with the help of the following function.

A. rjoin()
B. rbind()
C. rowbind()
D. rbinding()
Answer» C. rowbind()
5.

The dimension attribute is itself an integer vector of length _______

A. 1
B. 2
C. 3
D. 4
Answer» C. 3
6.

How do you create an integer suppose 5 in R?

A. 5L
B. 5l
C. 5i
D. 5d
Answer» B. 5l
7.

Which one of the following is not a basic datatype?

A. Numeric
B. Character
C. Data frame
D. Integer
Answer» D. Integer