

MCQOPTIONS
Saved Bookmarks
This section includes 10 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. |
_______________ returns TRUE then X can be termed as a matrix data object. |
A. | is.”matrix(X”) |
B. | is.matrix(X) |
C. | is.notamatrix(X ) |
D. | is.matrix(“X”) |
Answer» C. is.notamatrix(X ) | |
2. |
The line of code in R language should begin with a ________________ |
A. | Hash symbol |
B. | Alphabet |
C. | Number |
D. | Character |
Answer» B. Alphabet | |
3. |
__________ function is used for reading the .csv file in R language. |
A. | Write.csv() |
B. | Read.csv () |
C. | Let.csv() |
D. | Table.csv() |
Answer» C. Let.csv() | |
4. |
_____________ will produce a sequential vector c( (1,2,3,4,5,6,7,8,9)). |
A. | Seq(9) |
B. | Seq(10) |
C. | Seq(15) |
D. | Seq(12) |
Answer» B. Seq(10) | |
5. |
Which function is more verbose? |
A. | Lapply |
B. | Japply |
C. | Vapply |
D. | Zapply |
Answer» D. Zapply | |
6. |
Which function is difficult to implement? |
A. | Lapply |
B. | Japply |
C. | Vapply |
D. | Zapply |
Answer» D. Zapply | |
7. |
_____________ function is preferred over sapply as vapply allows the programmer to specific the output type. |
A. | Lapply |
B. | Japply |
C. | Vapply |
D. | Zapply |
Answer» D. Zapply | |
8. |
If a programmer wants the output to be a list then ___________ function is used. |
A. | Lapply |
B. | Sapply |
C. | Vapply |
D. | Zapply |
Answer» C. Vapply | |
9. |
If the programmers want the output to be a data frame or a vector, then ________ function is used. |
A. | Lapply |
B. | Sapply |
C. | Vapply |
D. | Zapply |
Answer» B. Sapply | |
10. |
R code can be tested using _________________ package. |
A. | Dplyr |
B. | Hadley’s testthat |
C. | SKLearn |
D. | KNN |
Answer» C. SKLearn | |