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. Which functions gives the count of levels?

level
levels
nlevels
nlevel

2. What will be output for the following code?

print(mean(25:82))

1526
53.5
50.5
55

3. What will be output for the following code?

> sqrt(-17)

-4.02
4.02
3.67
NAN

4. 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

5. Which of the following syntax is used to install forecast package?

install.pack("forecast")
install.packages("cast")
install.packages("forecast")
install.pack("forecastcast")

6. Which function in R language is used to find out whether the means of 2 groups are equal to each other or not?

f.tests ()
l.tests ()
t.tests ()
p.tests ()

7. Point out the wrong statement?

Functions in R are “second class objects”
The writing of a function allows a developer to create an interface to the code, that is explicitly specified with a set of parameters
Functions provides an abstraction of the code to potential users
Writing functions is a core activity of an R programmer

8. Which statement simulates the behavior of R switch?

Next
Previous
break
goto

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

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

10. Data Frames are created using the?

frame() function
data.frame() function
data() function
frame.data() function

Results