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. What will be the output of log (-5.8) when executed on R console?

NA
NAN
0.213
Error

2. R files has an extension _____.

.S
.RP
.R
.SP

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

4. Point out the wrong statement?

Setting up a workstation to take full advantage of the customizable features of R is a straightforward thing
q() is used to quit the R program
R has an inbuilt help facility similar to the man facility of UNIX
Windows versions of R have other optional help systems also

5. Which of the following is valid body of split function?

function (x, f)
function (x, f, drop = FALSE, …)
function (x, drop = FALSE, …)
function (drop = FALSE, …)

6. Which function is preferred over sapply as vapply allows the programmer to specific the output type?

Lapply
Japply
Vapply
Zapply

7. R was created by?

Ross Ihaka
Robert Gentleman
Both A and B
Ross Gentleman

8. How many atomic vector types does R have?

3
4
5
6

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

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

10. What will be output for the following code?

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

A
A B
A B C
A B C D

Results