R Programming Online Quiz Questions and Answers
Placement-ready Online Courses: Your Passport to Excellence - Start Now
In this online R programming Quiz, we will test your advanced skills to help you practice better. With these multiple-type questions, measure your skills and knowledge.
Do not forget to check other part of the R programming quiz once you are done with this part:
Quiz Summary
0 of 30 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 30 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
- Question 1 of 30
1. Question
Which of the following is a base package for R language?
CorrectIncorrect - Question 2 of 30
2. Question
R comes with a ________ to help you optimize your code and improve its performance.
CorrectIncorrect - Question 3 of 30
3. Question
debug() flags a function for ______ mode in R mode.
CorrectIncorrect - Question 4 of 30
4. Question
______ suspends the execution of a function wherever it is called and puts the function in debug mode
CorrectIncorrect - Question 5 of 30
5. Question
A matrix is ___dimensionsinal rectangular data set?
CorrectIncorrect - Question 6 of 30
6. Question
The _____ function takes a vector or other objects and splits it into groups determined by a factor or list of factors.
CorrectIncorrect - Question 7 of 30
7. Question
lapply function takes___ arguments in R language
CorrectIncorrect - Question 8 of 30
8. Question
____is used to apply a function over subsets of a vector
CorrectIncorrect - Question 9 of 30
9. Question
_______applies a function over the margins of an array
CorrectIncorrect - Question 10 of 30
10. Question
____function is same as lapply() in R
CorrectIncorrect - Question 11 of 30
11. Question
_______ loop over a list and evaluate a function on each element
CorrectIncorrect - Question 12 of 30
12. Question
__________ is proprietary tool for predictive analytics.
CorrectIncorrect - Question 13 of 30
13. Question
Data frames can be converted to a matrix by calling data._______
CorrectIncorrect - Question 14 of 30
14. Question
Which of the following method make a vector of repeated values?
CorrectIncorrect - Question 15 of 30
15. Question
R objects can have attributes, which are like ________ for the object
CorrectIncorrect - Question 16 of 30
16. Question
Attributes of an object (if any) can be accessed using the ______ function.
CorrectIncorrect - Question 17 of 30
17. Question
_________ involves predicting a response with meaningful magnitude, such as quantity sold, stock price, or return on investment.
CorrectIncorrect - Question 18 of 30
18. Question
________ provides needed string operators in R
CorrectIncorrect - Question 19 of 30
19. Question
______ splits a data frame and results in an array (hence the da). Hopefully, you’re getting the idea here.
CorrectIncorrect - Question 20 of 30
20. Question
System.time function returns an object of class _______ which contains two useful bits of information.
CorrectIncorrect - Question 21 of 30
21. Question
Which of the following will start the R program?
CorrectIncorrect - Question 22 of 30
22. Question
Which of the following is used for Statistical analysis in R language?
CorrectIncorrect - Question 23 of 30
23. Question
R functionality is divided into a number of ________
CorrectIncorrect - Question 24 of 30
24. Question
Which of the following is an example of vectorized operation as far as subtraction is concerned?
> x <- 1:4> y <- 6:9
CorrectIncorrect - Question 25 of 30
25. Question
What would be the output of the following code?
> x <- 1:4
> y <- 6:9
> z <- x + y
> z
CorrectIncorrect - Question 26 of 30
26. Question
What would be the output of the following code?
> x <- 1:4
> x > 2
CorrectIncorrect - Question 27 of 30
27. Question
What would be the value of the following expression?
log(-1)CorrectIncorrect - Question 28 of 30
28. Question
What will be the output of the following code?
> g <- function(x) {
+ a <- 3
+ x+a+y
+ ## ‘y’ is a free variable
+ }
> g(2)
CorrectIncorrect - Question 29 of 30
29. Question
What will be the output of the following code?
function(p) {
params[!fixed] <- p
mu <- params[1]
sigma <- params[2]
## Calculate the Normal density
a <- -0.5*length(data)*log(2*pi*sigma^2)
b <- -0.5*sum((data-mu)^2) / (sigma^2)
-(a + b)
}
> ls(environment(nLL))
CorrectIncorrect - Question 30 of 30
30. Question
Which of the following is a principle of analytic graphics?
CorrectIncorrect
Hope, you liked the set of questions in this R programming Quiz.
If you have any queries and suggestions, post them in the comment box.
Your opinion matters
Please write your valuable feedback about DataFlair on Google
Q.5. A matrix is ___dimensional rectangular data set?
plz tell me answer
correct answer is 2. but here it is not accepting as a right answer..
Hi Sai Kumar,
Thanks for asking a Query, on “R Programming Online Quiz”. It was just a Type error the correct answer is “A Matrix is TWO-dimensional rectangular data set.
Hope we solve your query.
Keep Learning and Keep visiting Data-Flair
2 dimensional
Q.5. A matrix is ___dimensional rectangular data set?
The Answer is Two in accordance to the given link, but the result is marking as wrong…
Hi Koushik Roy,
Thanks for Commenting on this R Quiz and help other readers. It was just a Type Error, we solved it, Hope you are enjoying this R programming tutorial and you can practice your R programming Knowledge in other R Quiz Part – 2.
Regards,
Data-Flair
________ provides needed string operators in R
Answer of this question???
Hi Sambhaji Jogdand,
Thanks for Asking query on “R Programming Quiz”, the correct answer “stringr”.
Keep Learning and Keep visiting Data-Flair
Tell me the answers
Hello Pratyusha,
You asked for the answers. When you attempt the R programming Quiz, click on the option which you feel is correct. If it shows green color, it means you answered correctly and if it shows red it means you have selected an incorrect answer. The interesting part of this online R quiz is that it gives you the explanation with the link so that you can learn the concepts deeply.
If you are still confused we are happy to help.
so good
Thank you, Nattakit,
So, you have checked your knowledge with R quiz. Now, prepare yourself for your upcoming R interviews –
https://data-flair.training/blogs/r-interview-questions-and-answers/
Share feedback again.
Keep Learning with Data Flair
Cannot find answers. Please let me know how to get the answer key
Hello Arti,
Thanks for interacting with DataFlair. We do not have a separate answer key, but you will find the answer to each question every time you answer it. If you answered correct, it will turn green; otherwise, it will turn red while also highlighting the correct answer in green. Hope, you understood.
ok
What would be the result of following code?
X<-c("X","y","z")as.logical(X)
Can I get a clarification on question 14.
I thought the correct answer is rep()
yes I too did the same mistake
Q.14 – Which of the following method make a vector of repeated values?
Solution : data()
But rep() is used for making a vector of repeated value.
The answer to Q10 is wrong. lapply() returns a list, sapply() returns a vector