JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
R interview questions part 19
R interview questions part 19
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. ___________ function gives an error message if the desired package cannot be loaded.
A. Dplyr
B. Require
C. Library
D. Sample
Show Correct Answer
Correct Answer is :
Library
2. A ________________ in R programming language can also contain numeric and alphabets along with special characters like dot and underline.
A. Variable name
B. Number
C. Integer
D. Character
Show Correct Answer
Correct Answer is :
Variable name
3. The current user defined objects like lists, vectors, etc. is referred to as __________ in the R language.
A. Work names
B. Work space
C. Environment
D. Console
Show Correct Answer
Correct Answer is :
Work names
4. Which function helps you perform sorting in R language?
A. Order
B. Inorder
C. Simple
D. Library
Show Correct Answer
Correct Answer is :
Order
5. Which function is used to create a histogram for visualisation in R programming language?
A. Library
B. Hist
C. Data
D. Refer
Show Correct Answer
Correct Answer is :
Hist
6. Write the syntax to set the path of the current working directory in R environment?
A. Setwd(“dipath”)
B. Setwd(dir_path)
C. Setwd(“dir_path”)
D. Set(“dir_path”)
Show Correct Answer
Correct Answer is :
Setwd(“dir_path”)
7. What will be the output of runif()?
A. Random number
B. Numbers
C. Character
D. Path generation
Show Correct Answer
Correct Answer is :
Random number
8. ________ function generates “n” normal random numbers based on the mean and standard deviation arguments passed to the function.
A. rnorm
B. vnorm
C. knorm
D. lnorm
Show Correct Answer
Correct Answer is :
rnorm
9. Write a function to extract the first name in the string “Mrs. Jake Luther”?
A. Substring
B. Substr
C. Substi
D. Return
Show Correct Answer
Correct Answer is :
Substr
10. _________ package provides basic functionalities in R environment like arithmetic calculations, input/output.
A. R base
B. R boost
C. R serve
D. R comm
Show Correct Answer
Correct Answer is :
R base
11. Which function basically finds the intersection between two different sets of data?
A. Converge
B. Merge
C. Delegate
D. Swap
Show Correct Answer
Correct Answer is :
Merge
12. Which function calculates the count of each category of a categorical variable?
A. Table
B. Intact
C. Tables
D. Retabs
Show Correct Answer
Correct Answer is :
Table
13. The cumulative frequency distribution of a categorical variable can be checked using the ________ function in R language.
A. Sum
B. Cumsum
C. Lumpsum
D. Resum
Show Correct Answer
Correct Answer is :
Cumsum
14. A programmer builds a _________ to avoid repeating the same task or reduce complexity.
A. Function
B. Package
C. Code
D. Console
Show Correct Answer
Correct Answer is :
Function
15. _______ grammar makes a clear distinction between your data and what gets displayed on the screen or page.
A. ggplot1
B. ggplot2
C. d3.js
D. all of the mentioned
Show Correct Answer
Correct Answer is :
ggplot2
16. Point out the wrong statement :
A. mean_se is used to calculate mean and standard errors on either side
B. hmisc wraps up a selection of summary functions from Hmisc to make it easy to use
C. plot is used to create a scatterplot matrix (experimental)
D. all of the mentioned
Show Correct Answer
Correct Answer is :
plot is used to create a scatterplot matrix (experimental)
17. Which of the following cuts numeric vector into intervals of equal length ?
A. cut_interval
B. cut_time
C. cut_number
D. all of the mentioned
Show Correct Answer
Correct Answer is :
cut_interval
18. Which of the following is a plot to investigate the order in which observations were recorded ?
A. ggplot
B. ggsave
C. ggpcp
D. ggorder
Show Correct Answer
Correct Answer is :
ggorder
19. Point out the wrong statement :
A. theme_minimal is minimalistic theme with no background annotations
B. theme_color is classic-looking theme, with x and y axis lines and no gridlines
C. theme_classic is a classic-looking theme
D. none of the mentioned
Show Correct Answer
Correct Answer is :
theme_color is classic-looking theme, with x and y axis lines and no gridlines
20. ________ is used for translating between qplot and base graphics.
A. translate_qplot_base
B. translate_qplot_gpl
C. translate_qplot_lattice
D. translate_qplot_ggplot
Show Correct Answer
Correct Answer is :
translate_qplot_base
Similar Interview Questions
Search for latest jobs
Find Jobs