Explore topic-wise MCQs in R Programming.

This section includes 5 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 row names for a data frame?

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

How many atomic vector types does R have?

A. 5
B. 6
C. 8
D. 10
Answer» C. 8
3.

R language has superficial similarity with _________

A. C
B. Python
C. MATLAB
D. SAS
Answer» B. Python
4.

R language is a dialect of which of the following languages?

A. S
B. C
C. MATLAB
D. SAS
Answer» B. C
5.

What is output of getOption( defaultPackages ) in R studio?

A. Installs a new package
B. Shows default packages in R
C. Error
D. Nothing will print
Answer» C. Error