

MCQOPTIONS
Saved Bookmarks
This section includes 9 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. |
What are the typeof(x) and mode(x) in the following R syntax? |
A. | Numeric, Integer |
B. | Integer, Numeric |
C. | Integer, Integer |
D. | Numeric, NumericView Answer |
Answer» C. Integer, Integer | |
4. |
What is the mode of b in the following R code? |
A. | Numeric |
B. | Character |
C. | Integer |
D. | LogicalView Answer |
Answer» B. Character | |
5. |
What is the length of b? |
A. | 4 |
B. | 5 |
C. | 6 |
D. | 0View Answer |
Answer» D. 0View Answer | |
6. |
What is the mode of ‘a’ in the following R code? |
A. | Numeric |
B. | Character |
C. | Integer |
D. | LogicalView Answer |
Answer» C. Integer | |
7. |
R language has superficial similarity with _________ |
A. | C |
B. | Python |
C. | MATLAB |
D. | SAS |
Answer» B. Python | |
8. |
R language is a dialect of which of the following languages? |
A. | S |
B. | C |
C. | MATLAB |
D. | SAS |
Answer» B. C | |
9. |
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 | |