JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
R interview questions part 29
R interview questions part 29
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What is NaN called?
A. Not a Number
B. Not a Numeric
C. Number and Number
D. Number a Numeric
Show Correct Answer
Correct Answer is :
Not a Number
2. How can we define ‘infinity’ in R language?
A. Inf
B. Sup
C. Und
D.
Show Correct Answer
Correct Answer is :
Inf
3. How can we define ‘infinity’ in R language?
A. Inf
B. Sup
C. Und
D.
Show Correct Answer
Correct Answer is :
Inf
4. What is the output of the following code? y <- c(TRUE, 2)
A. [1] “TRUE” “2”
B. [1] “TRUE” 2
C. [1] “0” “2”
D. [1] 1 2
Show Correct Answer
Correct Answer is :
[1] 1 2
5. What is the output of the following code? y <- c(TRUE, 2)
A. [1] “TRUE” “2”
B. [1] “TRUE” 2
C. [1] “0” “2”
D. [1] 1 2
Show Correct Answer
Correct Answer is :
[1] 1 2
6. What is the class defined by the following code? y<-c(2,”t”)
A. Character
B. Numeric
C. Logical
D. Integer
Show Correct Answer
Correct Answer is :
Character
7. What is the class defined by the following code? y<-c(2,”t”)
A. Character
B. Numeric
C. Logical
D. Integer
Show Correct Answer
Correct Answer is :
Character
8. What is the class defined in the following code? y<-c(FALSE,2)
A. Character
B. Numeric
C. Logical
D. Integer
Show Correct Answer
Correct Answer is :
Numeric
9. Which one of the following is not a basic datatype?
A. Numeric
B. Character
C. Data frame
D. Integer
Show Correct Answer
Correct Answer is :
Data frame
10. How do you create an integer suppose 5 in R?
A. 5L
B. 5l
C. 5i
D. 5d
Show Correct Answer
Correct Answer is :
5L
11. What is the output of the following code? x<- c (“a”,” b”) as.numeric(x)
A. [1] 1 2
B. [1] TRUE TRUE
C. [1] NA NA (Warning message: NAs introduced by coercion)
D. [1] NAN
Show Correct Answer
Correct Answer is :
[1] NA NA (Warning message: NAs introduced by coercion)
12. The dimension attribute is itself an integer vector of length _______
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
2
13. How could be the matrix constructed by using the following code? m <- matrix(1:6, nrow = 2, ncol = 3)
A. row-wise
B. column-wise
C. any manner
D. data insufficient
Show Correct Answer
Correct Answer is :
column-wise
14. Matrices can be created by row-binding with the help of the following function.
A. rjoin()
B. rbind()
C. rowbind()
D. rbinding()
Show Correct Answer
Correct Answer is :
rbind()
15. What is the function used to test objects (returns a logical operator) if they are NA?
A. is.na()
B. is.nan()
C. as.na()
D. as.nan()
Show Correct Answer
Correct Answer is :
is.na()
16. What is the function used to test objects (returns a logical operator) if they are NaN?
A. as.nan()
B. is.na()
C. as.na()
D. is.nan()
Show Correct Answer
Correct Answer is :
is.nan()
17. What is the function to set column names for a matrix?
A. names()
B. colnames()
C. col.names()
D. column name cannot be set for a matrix
Show Correct Answer
Correct Answer is :
colnames()
18. ______ let’s you perform SQL queries on your R data frames.
A. sqldf
B. plyr
C. forecast
D. all of the mentioned
Show Correct Answer
Correct Answer is :
plyr
19. ______ splits a data frame and results an array (hence the da). Hopefully you’re getting the idea here.
A. apply
B. daply
C. stats
D. all of the mentioned
Show Correct Answer
Correct Answer is :
daply
20. ________ makes it incredibly easy to fit time series models like ARIMA, ARMA, AR, Exponential Smoothing, etc.
A. sqldf
B. plyr
C. forecast
D. all of the mentioned
Show Correct Answer
Correct Answer is :
forecast
Similar Interview Questions
Search for latest jobs
Find Jobs