R Programming Quizzes

Introduction to R

Question 1

Who are the two primary creators of the R programming language?

Question 2

What is the primary purpose of the R programming language?

Question 3

Which of the following is the most idiomatic and preferred assignment operator in R?

Question 4

Which of the following are fundamental atomic vector types in R? (Select all that apply)

Question 5

To write a single-line comment in R, you use the ____ symbol at the beginning of the comment.

Your answer here.

Question 6

Which function is used to install a new package from CRAN (Comprehensive R Archive Network) in R?

Question 7

Select all valid ways to get help for a function named 'plot' in R:

Question 8

In R, data frames are used to store tabular data. A key feature is that columns within a data frame can be of ____ data types.

Your answer here.

Question 9

What is the primary purpose of the c() function in R?

Question 10

Which of the following statements are true about the R language? (Select all that apply)

Question 11

The function used to display the current working directory in R is ____().

Your answer here.

Question 12

How are missing values (i.e., 'Not Available') predominantly represented in R objects?

Question 13

To make the functions and datasets from an installed R package (e.g., 'ggplot2') available in your current R session, you would typically use the command ____(ggplot2).

Your answer here.

Question 14

Which of these are popular Integrated Development Environments (IDEs) or enhanced interfaces frequently used for R programming? (Select all that apply)

Question 15

What will be the output of class(FALSE) in R?

End of Quiz

Your final score is: 0 / 0

List of Questions

Question 1: Who are the two primary creators of the R programming language?

Answers: Ross Ihaka and Robert Gentleman.

Question 2: What is the primary purpose of the R programming language?

Answers: Statistical computing and graphics.

Question 3: Which of the following is the most idiomatic and preferred assignment operator in R?

Answers: <-.

Question 4: Which of the following are fundamental atomic vector types in R? (Select all that apply)

Answers: numeric, character, logical, integer.

Question 5: Which function is used to install a new package from CRAN (Comprehensive R Archive Network) in R?

Answers: install.packages().

Question 6: Select all valid ways to get help for a function named 'plot' in R:

Answers: help(plot), ?plot.

Question 7: What is the primary purpose of the `c()` function in R?

Answers: To combine or concatenate values into a vector or list.

Question 8: Which of the following statements are true about the R language? (Select all that apply)

Answers: R is case-sensitive., R is an open-source language distributed under a GNU GPL license., R was derived from the S language..

Question 9: How are missing values (i.e., 'Not Available') predominantly represented in R objects?

Answers: NA.

Question 10: Which of these are popular Integrated Development Environments (IDEs) or enhanced interfaces frequently used for R programming? (Select all that apply)

Answers: RStudio, Jupyter Notebook (with an R kernel), Visual Studio Code (with R extensions), PyCharm (with R plugin).

Question 11: What will be the output of `class(FALSE)` in R?

Answers: logical.