Explore topic-wise MCQs in R Programming.

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

Collection of objects currently stored in R is called as ________________

A. package
B. workspace
C. list
D. task
Answer» C. list
2.

Which of the following can be used to display the names of (most of) the objects which are currently stored within R?

A. object()
B. objects()
C. list()
D. class()
Answer» C. list()
3.

The entities that R creates and manipulates are known as ________

A. objects
B. task
C. container
D. packages
Answer» B. task
4.

_______ will divert all subsequent output from the console to an external file.

A. sink
B. div
C. exp
D. exc
Answer» B. div
5.

If commands are stored in an external file, say commands.R in the working directory work, they may be executed at any time in an R session with the command ____________

A. source("commands.R")
B. exec("commands.R")
C. execute("commands.R")
D. exect("command.R")
Answer» B. exec("commands.R")
6.

Files containing R scripts ends with extension ____________

A. .S
B. .R
C. .Rp
D. .SP
Answer» C. .Rp