JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
R interview questions part 24
R interview questions part 24
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. A _______________ is a variable that holds one value at a time.
A. Scalar variable
B. Duplex
C. High
D. Vector
Show Correct Answer
Correct Answer is :
Scalar variable
2. Which of the following return a subset of the columns of a data frame?
A. select
B. retrieve
C. get
D. all of the mentioned
Show Correct Answer
Correct Answer is :
select
3. Point out the correct statement :
A. The data frame is a key data structure in statistics and in R
B. R has an internal implementation of data frames that is likely the one you will use most often
C. There are packages on CRAN that implement data frames via things like relational databases that allow you to operate on very very large data frames
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
4. _________ extract a subset of rows from a dataframe based on logical conditions.
A. rename
B. filter
C. set
D. subset
Show Correct Answer
Correct Answer is :
rename
5. _________ generate summary statistics of different variables in the data frame, possibly within strata
A. rename
B. summarize
C. set
D. subset
Show Correct Answer
Correct Answer is :
summarize
6. Point out the wrong statement :
A. The dplyr package was developed by Hadley Wickham of RStudio
B. The dplyr package is an optimized and distilled version of his plyr package
C. The dplyr package provides any “new” functionality to R
D. None of the mentioned
Show Correct Answer
Correct Answer is :
The dplyr package provides any “new” functionality to R
7. ________ add new variables/columns or transform existing variables
A. mutate
B. add
C. apped
D. arrange
Show Correct Answer
Correct Answer is :
mutate
8. The _______ operator is used to connect multiple verb actions together into a pipeline
A. pipe
B. piper
C. start
D. all of the mentioned
Show Correct Answer
Correct Answer is :
pipe
9. The dplyr package can be installed from GitHub using the _______ package
A. dev
B. devtools
C. devtool
D. all of the mentioned
Show Correct Answer
Correct Answer is :
devtools
10. The dplyr package can be installed from CRAN using :
A. installall.packages(“dplyr”)
B. install.packages(“dplyr”)
C. installed.packages(“dplyr”)
D. none of the mentioned
Show Correct Answer
Correct Answer is :
install.packages(“dplyr”)
11. Which of the following object is masked from ‘package: stats’?
A. filter
B. union
C. set difference
D. none of the mentioned
Show Correct Answer
Correct Answer is :
filter
12. Which of the following object is masked from ‘package: stats’?
A. filter
B. union
C. set difference
D. none of the mentioned
Show Correct Answer
Correct Answer is :
filter
13. The _________ function can be used to select columns of a data frame that you want to focus on.
A. select
B. rename
C. get
D. all of the mentioned
Show Correct Answer
Correct Answer is :
select
14. Point out the correct statement :
A. You can also omit variables using the select() function by using the negative sign
B. The arrange() function also allows a special syntax that allows you to specify variable names based on patterns
C. Reordering rows of a data frame is normally easier to do in R
D. All of the mentioned
Show Correct Answer
Correct Answer is :
You can also omit variables using the select() function by using the negative sign
15. ________ function is similar to the existing subset() function in R but is quite a bit faster.
A. rename
B. filter
C. set
D. subset
Show Correct Answer
Correct Answer is :
filter
16. Columns can be arranged in descending order too by using the special ____ operator.
A. asc()
B. desc()
C. descending()
D. subset
Show Correct Answer
Correct Answer is :
desc()
17. Point out the wrong statement :
A. Renaming a variable in a data frame in R is surprisingly hard to do
B. The mutate() function exists to compute transformations of variables in a data frame
C. mute() function, which does the same thing as mutate() but then drops all non-transformed variables
D. None of the mentioned
Show Correct Answer
Correct Answer is :
mute() function, which does the same thing as mutate() but then drops all non-transformed variables
18. The _________ function is used to generate summary statistics from the data frame within strata defined by a variable.
A. groupby()
B. group()
C. group_by()
D. arrange
Show Correct Answer
Correct Answer is :
group_by()
19. The ______ operator allows you to string operations in a left-to-right fashion.
A. %>%>
B. %>%
C. >%>%
D. All of the mentioned
Show Correct Answer
Correct Answer is :
%>%
20. There is an SQL interface for relational databases via the _______ package.
A. DIB
B. DB2
C. DBI
D. All of the mentioned
Show Correct Answer
Correct Answer is :
DBI
Similar Interview Questions
Search for latest jobs
Find Jobs