Vidyalelo
R Programming · all questions

Introduction to R Programming
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

155

Questions

7/8

Page

Pick an option on a question to see the right answer and solution.

They primary R system is available from the . . . . . . . .

Select an option to see the answer and solution.

What is the function used to test objects (returns a logical operator) if they are NaN?

Select an option to see the answer and solution.

Dataframes can be converted into a matrix by calling the following function data . . . . . . . .

Select an option to see the answer and solution.

Advanced programmers can write . . . . . . . . code to manipulate R objects.

Select an option to see the answer and solution.

What will be the output of the following R code?
y <- c(TRUE, 2)

Select an option to see the answer and solution.

Point out the WRONG statement?

Select an option to see the answer and solution.

The most convenient way to use R is at a graphics workstation running a . . . . . . . . system.

Select an option to see the answer and solution.

If a command is not complete at the end of a line, R will give a different prompt, by default it is . . . . . . . .

Select an option to see the answer and solution.

Which one of the following is not a basic datatype?

Select an option to see the answer and solution.

In which IDE we can interact with R?

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

Point out the wrong statement?

Select an option to see the answer and solution.

Which of the following will start the R program?

Select an option to see the answer and solution.

What will be the output of the following R function?
nchar()

Select an option to see the answer and solution.

What is the meaning of the following R function?
print( sqrt(2) )

Select an option to see the answer and solution.

What is the function to set row names for a data frame?

Select an option to see the answer and solution.

R is mostly used in . . . . . . . .

Select an option to see the answer and solution.

What will be the output of the following R function?
ab <- list(1, 2, 3, "X", "Y", "Z")
dim(ab) <- c(3,2)
print(ab)

Select an option to see the answer and solution.

Point out the wrong statement?

Select an option to see the answer and solution.

. . . . . . . . programming language is a dialect of S.

Select an option to see the answer and solution.