MCQs R Vectors 5

This quiz contains MCQs R Vectors.

Online MCQs R Language Test

1. How can one define ‘undefined value’ in R Language?

 
 
 
 

2. If a command is incomplete at the end of a line, R will give a different prompt, by default it is _____

 
 
 
 

3. What is the output of the following R code?
x <- c("a", "b")
as.numeric(x)

 
 
 
 

4. What is the output of the following R code?
y <- 0:5
vector(y)
y[3]

 
 
 
 

5. Identify the wrong statement:

 
 
 
 

6. How one can define ‘infinity’ in R Language?

 
 
 
 

7. ________ operator is used to create integer sequences.

 
 
 
 

8. What is the output of the following R code?

r <- 0:10
r[2]

 
 
 
 

9. The following command can be used to print an object “x” in R?

 
 
 
 

10. Which of the describe R Language best