

MCQOPTIONS
Saved Bookmarks
This section includes 12 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. |
Which of the following code would read 100 rows? |
A. | initial <- read.table(“datatable.txt”, nrows = 100) |
B. | tabAll <- read.table(“datatable.txt”, colClasses = classes) |
C. | initial <- read.table(“datatable.txt”, nrows = 99) |
D. | initial <- read.table(“datatable.txt”, nrows = 101) |
Answer» B. tabAll <- read.table(“datatable.txt”, colClasses = classes) | |
2. |
Which of the following function is identical to read .table? |
A. | read.csv |
B. | read.data |
C. | read.tab |
D. | read.del |
Answer» B. read.data | |
3. |
Which of the following statement would read file “foo.txt”? |
A. | data <- read.table(“foo.txt”) |
B. | read.data <- read.table(“foo.txt”) |
C. | data <- read.data(“foo.txt”) |
D. | data <- data(“foo.txt”) |
Answer» B. read.data <- read.table(“foo.txt”) | |
4. |
Which of the following argument denotes if the file has a header line? |
A. | header |
B. | sep |
C. | file |
D. | footer |
Answer» B. sep | |
5. |
________ is used for outputting a textual representation of an R object. |
A. | dput |
B. | dump |
C. | dget |
D. | dset |
Answer» B. dump | |
6. |
Which of the following is used for reading in saved workspaces? |
A. | unserialize |
B. | load |
C. | get |
D. | set |
Answer» C. get | |
7. |
Which of the following code would read 100 rows ? |
A. | initial <- read.table(“datatable.txt”, nrows = 100) |
B. | tabAll <- read.table(“datatable.txt”, colClasses = classes) |
C. | initial <- read.table(“datatable.txt”, nrows = 99) |
D. | all of the mentioned |
Answer» B. tabAll <- read.table(‚Äö√Ñ√∂‚àö√ë‚àö‚à´datatable.txt‚Äö√Ñ√∂‚àö√ë‚àöœÄ, colClasses = classes) | |
8. |
Which of the following function is identical to read.table ? |
A. | read.csv |
B. | read.data |
C. | read.tab |
D. | None of the mentioned |
Answer» B. read.data | |
9. |
Which of the following statement would read file “foo.txt” ?$ |
A. | data <- read.table(“foo.txt”) |
B. | read.data <- read.table(“foo.txt”) |
C. | data <- read.data(“foo.txt”) |
D. | none of the mentioned |
Answer» B. read.data <- read.table(‚Äö√Ñ√∂‚àö√ë‚àö‚à´foo.txt‚Äö√Ñ√∂‚àö√ë‚àöœÄ) | |
10. |
Which of the following argument denotes if the file has a header line ? |
A. | header |
B. | sep |
C. | file |
D. | all of the mentioned |
Answer» B. sep | |
11. |
________ is used for outputting a textual representation of an R object |
A. | dput |
B. | dump |
C. | dget |
D. | all of the mentioned |
Answer» B. dump | |
12. |
Which of the following is used for reading in saved workspaces ? |
A. | unserialize |
B. | load |
C. | get |
D. | none of the mentioned |
Answer» C. get | |