R Programming Language

399 questions in the bank
Are you ready to take quiz?
Explore more
Logo
About the Quiz

Quiz will ask 20 randomly selected questions with allotted time of . You can take the quiz more than once. Once you submit the quiz, you can review how you have done, the correct the answers for each questions and the explanation for the correct the answer.

Quiz Topics

11 Modules

Advanced Topics

4 topics
1.

Functional programming concepts

10 questions
2.

Object-oriented programming in R (S3, S4, R6)

10 questions
3.

Parallel processing with foreach and future

10 questions
4.

Working with APIs and web scraping

10 questions

Debugging and Testing

3 topics

R Markdown and Reporting

3 topics

Data Import and Export

3 topics

Working with Packages

3 topics

Statistical Analysis

4 topics

Data Visualization

4 topics

Data Manipulation

4 topics

Functions

4 topics

Control Structures

3 topics

Basic Syntax and Data Types

5 topics
Sample questions

Which of the following is a valid way to create a variable in R?

var1 <- 10

var2 = 20

var3: 30

var4 <<- 40

What will be the output of the following code? x <- c(1, 2, 3); y <- c(4, 5, 6); z <- x + y; print(z)

c(5, 7, 9)

c(1, 2, 3)

c(4, 5, 6)

Error in addition

Which of the following data types can be stored in a list in R?

Numeric

Character

Logical

All of the above

What is the result of the following code? a <- 5; b <- 10; c <- a > b; print(c)

TRUE

FALSE

NA

Error

Which of the following correctly creates a factor variable in R?

factor_var <- factor(c('A', 'B', 'A'))

factor_var <- c('A', 'B', 'A')

factor_var <- as.factor(c(1, 2, 1))

Both A and C

Quiz Topics

11 Modules

Advanced Topics

4 topics
1.

Functional programming concepts

10 questions
2.

Object-oriented programming in R (S3, S4, R6)

10 questions
3.

Parallel processing with foreach and future

10 questions
4.

Working with APIs and web scraping

10 questions

Debugging and Testing

3 topics

R Markdown and Reporting

3 topics

Data Import and Export

3 topics

Working with Packages

3 topics

Statistical Analysis

4 topics

Data Visualization

4 topics

Data Manipulation

4 topics

Functions

4 topics

Control Structures

3 topics

Basic Syntax and Data Types

5 topics