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 function is preferred over sapply as vapply allows the programmer to specific the output type?

Lapply
Japply
Vapply
Zapply

2. DESCRIPTION uses a very simple file format called DCF.

TRUE
FALSE
Can be true or false
Can not say

3. ______ Uses Grieg-Smith method on 2 dimensional spatial data.

G.A.
G2db
G.S.
G1DBN

4. What will be output for the following code?

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

A
NAN
NA
Error

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

6. Which functions gives the count of levels?

level
levels
nlevels
nlevel

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

8. R made its first appearance in?

1992
1995
1993
1994

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

10. What will be the output of log (-5.8) when executed on R console?

NA
NAN
0.213
Error

Results