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 loop executes a sequence of statements multiple times and abbreviates the code that manages the loop variable?

for
while
do-while
repeat

2. What will be the output of the following R code?

> x <- vector(""numeric"", length = 10)
> x

1 0
0 0 0 0 0 0 0 0 0 0
0 1
0 0 1 1 0 1 1 0

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[1]
for ( i in v) {
   print(v)
}

A
A B
A B C
A B C D

5. The mapply() function is a multivariate apply of sorts which applies a function in parallel over a set of arguments.

TRUE
FALSE
Can be true or false
Can not say

6. R allows integration with the procedures written in the?

C
Ruby
Java
Basic

7. What will be output for the following code?

v <- TRUE
print(class(v))

logical
Numeric
Integer
Complex

8. What will be output for the following code?

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

A
NAN
NA
Error

9. 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, …)

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

NA
NAN
0.213
Error

Results