JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
R interview questions part 3
R interview questions part 3
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which programming language is more based on the results?
A. R
B. C
C. C++
D. Java
Show Correct Answer
Correct Answer is :
R
2. Why learning R becomes tough?
A. Special files
B. Functions
C. Packages
D. Special Cases
Show Correct Answer
Correct Answer is :
Special Cases
3. R is mostly used in ______________
A. Problem solving
B. Statistics
C. Probability
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
4. Why is it needed for R studio to update regularly?
A. Bugs
B. More Functions
C. Methods
D. For more packages
Show Correct Answer
Correct Answer is :
Bugs
5. What is the meaning of “<-“?
A. Functions
B. Loops
C. Addition
D. Assignment
Show Correct Answer
Correct Answer is :
Assignment
6. In the expression x <- 4 in R, what is the class of ‘x’ as determined by the `class()’ function?
A. Character
B. Numeric
C. Integer
D. Word
Show Correct Answer
Correct Answer is :
Integer
7. Which of the following code create n samples of size “size” with probability prob from the binomial ?
A. z <- rinom(n,size,prob)
B. z <- rbinom(n,size,prob)
C. z <- binom(n,size,prob)
D. all of the mentioned
Show Correct Answer
Correct Answer is :
z <- rbinom(n,size,prob)
8. Which of the following code create a n item vector of random normal deviates ?
A. x1 <- c(snorm(n))
B. x1 <- c(pnorm(n))
C. x1 <- c(rnorm(n))
D. all of the mentioned
Show Correct Answer
Correct Answer is :
x1 <- c(rnorm(n))
9. Which of the following statement can read csv files ?
A. read.table(filename,header=TRUE,sep=’,’)
B. read.csv(filename,header=TRUE,sep=’,’)
C. read.tab(filename,header=TRUE,sep=’,’)
D. none of the mentioned
Show Correct Answer
Correct Answer is :
read.table(filename,header=TRUE,sep=’,’)
10. Which of the following statement read a tab or space delimited file ?
A. read.table(filename,header=TRUE)
B. read.CSV(filename,header=TRUE)
C. read.table(filename,header=FALSE)
D. read.tableall(filename,header=TRUE)
Show Correct Answer
Correct Answer is :
read.table(filename,header=TRUE)
11. which of the following statement chose those objects meeting a logical criterion ?
A. sub(dataset,logical)
B. subset(dataset,logical)
C. subsetcon(dataset,logical)
D. none of the mentioned
Show Correct Answer
Correct Answer is :
subset(dataset,logical)
12. Which of the following statement is another way to get a subset ?
A. subsetcon(dataset,logical)
B. data.df[data.df=logical].
C. sub(dataset,logical)
D. none of the mentioned
Show Correct Answer
Correct Answer is :
data.df[data.df=logical].
13. Which of the following sort a dataframe by the order of the elements in B
A. x[rev(order(x$B)),].
B. x[ordersort(x$B),].
C. x[order(x$B),].
D. all of the mentioned
Show Correct Answer
Correct Answer is :
x[rev(order(x$B)),].
14. Which of the following is Mac menu command ?
A. browse.workspace
B. browse.works
C. browser.workspace
D. a statistical transformation
Show Correct Answer
Correct Answer is :
browse.workspace
15. _____ list the variables in the workspace
A. rm(x)
B. rm(list=ls())
C. ls()
D. attach(mat)
Show Correct Answer
Correct Answer is :
ls()
16. ___________ remove all the variables from the workspace
A. rm(x)
B. rm(list=ls())
C. ls()
D. attach(mat)
Show Correct Answer
Correct Answer is :
rm(list=ls())
17. Which of the following code will drop the nth column ?
A. new <- old[-n,].
B. new <- old[,-n].
C. new <- old[,-c(i,j)].
D. new <- subset(old,logical)
Show Correct Answer
Correct Answer is :
new <- old[-n,].
18. Which of the following code drop the ith and jth column ?
A. new <- old[-n,].
B. new <- old[,-n].
C. new <- old[,-c(i,j)].
D. new <- subset(old,logical)
Show Correct Answer
Correct Answer is :
new <- old[,-c(i,j)].
19. Which of the following statement find cases with no missing values ?
A. complete <- subset(data.df,complete.cases(data.df)
B. complete <- sub(data.df,complete.cases(data.df)
C. complete <- subset(data.df,completeall.cases(data.df)
D. new <- old[n1:n2,n3:n4].
Show Correct Answer
Correct Answer is :
complete <- subset(data.df,complete.cases(data.df)
20. Which of the following statement is normal distribution ?
A. dnorm(x, mean=0, sd=1, log = FALSE)
B. pnorm(q, mean=0, sd=1, lower.tail = TRUE, log.p = FALSE)
C. qnorm(p, mean=0, sd=1, lower.tail = TRUE, log.p = FALSE)
D. rnorm(n, mean=0, sd=1)
Show Correct Answer
Correct Answer is :
dnorm(x, mean=0, sd=1, log = FALSE)
Similar Interview Questions
Search for latest jobs
Find Jobs