Explore topic-wise MCQs in R Programming.

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

readlines is used for ____________

A. working on data
B. reading files
C. reading lines in files
D. not exist
Answer» C. reading lines in files
2.

load() is used for _______

A. reading
B. loading
C. working
D. not exist
Answer» B. loading
3.

The benefit of the _____ function is that it is the only way to perfectly repressed an R object in an exportable format, without losing precision or any metadata.

A. save()
B. save.image()
C. unserialize()
D. serialize()
Answer» E.
4.

When you call serialize() on an R object, the output will be ____ coded in hexadecimal format.

A. raw vector
B. character vector
C. integer vector
D. binary vector
Answer» B. character vector
5.

.RData extension used when we save data using the functions ___________

A. save()
B. save.image()
C. save and save.image functions
D. serialize()
Answer» D. serialize()
6.

.rda extension used when saving data with function __________

A. save()
B. save.image()
C. save and save.image functions
D. serialize()
Answer» D. serialize()
7.

If you have a lot of objects that you want to save to a file, we use ________ function.

A. save()
B. save.image()
C. serialize()
D. deserialize()
Answer» C. serialize()
8.

If we want to save individual R objects to a file, we use the _______ function.

A. save()
B. save.image()
C. serialize()
D. deserialize()
Answer» B. save.image()
9.

We can dump() R objects to a file by passing _____

A. character vector of their names
B. object name
C. arguments
D. file name
Answer» B. object name
10.

Multiple objects can be de parsed at once and read back using function _____

A. source()
B. read()
C. dget()
D. dput()
Answer» B. read()
11.

Multiple objects can be de parsed at once using the ______ function.

A. dput()
B. write()
C. dump()
D. dget()
Answer» B. write()
12.

dput() output is in the form of ___________

A. R code
B. text file code
C. binary code
D. both binary and text
Answer» B. text file code
13.

Main way to read the data back in (parsing it) using the function.

A. dput()
B. write()
C. read()
D. dget()
Answer» E.
14.

One way to pass data around is by de parsing the R object with _________

A. dput()
B. write()
C. read()
D. dget()
Answer» B. write()
15.

Unlike writing out a table or CSV file, dump() and dput() preserve the ______ so that another user doesn’t have to specify the all over again.

A. metadata
B. backup data
C. attribute data
D. normal data
Answer» B. backup data