Explore topic-wise MCQs in R Programming.

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.

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
7.

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. all of the mentioned
Answer» C. execute(‚Äö√Ñ√∂‚àö√ë‚àö‚à´commands.R‚Äö√Ñ√∂‚àö√ë‚àöœÄ)
8.

POINT_OUT_THE_WRONG_STATEMENT_:?$

A. : operator is used to create integer sequences
B. The numbers in the square brackets are part of the vector itself
C. There is a difference between the actual R object and the manner in which that R object is printed to the console
D. All of the mentioned
Answer» C. There is a difference between the actual R object and the manner in which that R object is printed to the console
9.

Files containing R scripts ends with extension ?

A. .S
B. .R
C. .Rp
D. All of the mentioned
Answer» B. .R