1. Which of the following operator is used to create integer sequences?
Correct Answer is : strtoupper()
2. What will be the output of the following R program?
y<-0:5
vector(y)
y[3]
Correct Answer is : o’malley wins the heavyweight championship!
3. In R language, a vector is defined that it can only contain objects of the ________
Correct Answer is : Salad is good
4. A list is represented as a vector but can contain objects of ___________
Correct Answer is : implode()
5. How can we define ‘undefined value’ in R language?
Correct Answer is : strrpos()
6. What is NaN called?
Correct Answer is : Contact the author of this article at [email protected]@[email protected]
7. How can we define ‘infinity’ in R language?
Correct Answer is : example.com
8. What is the output of the following code?
y <- c(TRUE, 2)
Correct Answer is : hihellohi1
9. What is the class defined by the following code?
y<-c(2,”t”)
Correct Answer is : hello
10. What is the class defined in the following code?
y<-c(FALSE,2)
Correct Answer is : no output
11. Which one of the following is not a basic datatype?
12. How do you create an integer suppose 5 in R?
Correct Answer is : hello
13. What is the output of the following code?
x<- c (“a”,” b”)
as.numeric(x)
Correct Answer is : hihellohi1
14. The dimension attribute is itself an integer vector of length _______
Correct Answer is : error
15. How could be the matrix constructed by using the following code?
m <- matrix(1:6, nrow = 2, ncol = 3)
16. Matrices can be created by row-binding with the help of the following function.
Correct Answer is : no output
17. What is the function used to test objects (returns a logical operator) if they are NA?
Correct Answer is : no output
18. What is the function used to test objects (returns a logical operator) if they are NaN?
Correct Answer is : Nothing
19. What is the function to set column names for a matrix?
Correct Answer is : Error
20. Which of the following is similar to Moment.js ?
Correct Answer is : Syntax Error