R Programming Quiz


Play this quiz that will help you to excel in R certification exams, placements etc. This R programming quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This test enables you to assess your knowledge of R programming.

Take the Free Practice Test



R MCQs

Practice R Programming MCQ Questions, which will help you to understand R Programming language and will help in developing statistical softwares.

R Quiz

Try Free R Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

R Quiz

1. Point out the wrong statement?

Multi-line expressions with curly braces are just not that easy to sort through when working on the command line
lappy() loops over a list, iterating over each element in that list
lapply() does not always returns a list
You cannot use lapply() to evaluate a function multiple times each with a different argument

2. Which loop executes a sequence of statements multiple times and abbreviates the code that manages the loop variable?

for
while
do-while
repeat

3. You can check to see whether an R object is NULL with the _________ function.

is.null()
is.nullobj()
null()
as.nullobj()

4. What will be output for the following code?

> paste("a", "b", se = ":")

a+b
a:b
a-b
None of the above

5. Which of the following character skip during execution?

v <- LETTERS[1:6]
for ( i in v) {
   
   if (i == ""D"") {
      next
   }
   print(i)
}

A
B
C
D

6. .library() is not useful when developing a package since you have to install the package first.

TRUE
FALSE
Can be true or false
Can not say

7. What will be output for the following code?

v <- LETTERS[""A""]
for ( i in v) {
   print(v)
}

A
NAN
NA
Error

8. Which of the following is true about R?

R is a well-developed, simple and effective programming language
R has an effective data handling and storage facility
R provides a large, coherent and integrated collection of tools for data analysis.
All of the above

9. How will you check if an element is present in a vector?

Match()
Dismatch()
Mismatch()
Search()

10. What will be output for the following code?

> sqrt(-17)

-4.02
4.02
3.67
NAN

Results