Tidyverse Quiz 28

Tidyverse Quiz: 15 Questions to Challenge Your R Knowledge. Test your R Language skills with this 20-question Tidyverse quiz! From dplyr to ggplot2, see how well you know data wrangling, visualization, summary statistics, and more. Perfect for R Language beginners and experts- can you score 100%? Let us start with the Tidyverse Quiz R Language.

MCQs Tidyverse Quiz R Language

dplyr, ggplot2 & More: A Tidyverse Quiz for R Data Scientists, R programming

1. Which of these accurately describes piping?

 
 
 
 

2. To combine functions, use the ————.

 
 
 
 

3. Suppose you have a data frame named “dat” with two numeric columns, $value1$ and $value2$. You want to add a third column called $my\_value$, where the value in each row is the product of multiplying the other two values in the row by one another. Which is the correct line of code?

 
 
 
 

4. The tidyverse replaces the techniques for manipulating data with base R.

 
 

5. Which of these are advantages of Tibbles over data frames?

 
 
 
 

6. Looking at tidyverse.org, how many core packages are included in the tidyverse?

 
 
 
 

7. Suppose you have a dataset that looks like this:

colors <- c("red","green","yellow")
speeds <- c("slow","fast","medium")
my_dat <- data.frame(colors,speeds)

What is the correct code to recode the “colors” column so that red equals 0, green equals 2, and yellow equals 1?

 
 
 
 

8. Functions contained in packages such as dplyr are used to:

 
 
 
 

9. Suppose you have a tibble saved to the object $my\_dat$ with two columns, $alpha$ and $beta$. These are filled with numeric data. Which of these will arrange the data in descending order by $alpha$?

 
 
 
 

10. What do you need to do to use tidyverse commands in R?

 
 
 
 

11. Which is NOT a principle of tidy data?

 
 
 
 

12. Which one of these libraries is widely used for data manipulation in R?

 
 
 
 

13. When you run the line: dat <- read_csv("my_data.csv"). What kind of object is dat?

 
 
 
 

14. Suppose you have a tibble called “cities” with columns including population (“population”), a measure of economic activity (“gdp”), and the state in which the city is located (“state”).

Which of these commands would select rows from the dataset where the value for population is more than 3,000, the value for economic activity is less than 120,000, and the city is not located in Alabama?

 

 
 
 
 

15. Which of the following is NOT one of the four groups in the tidyverse library?

 
 
 
 

16. Suppose you have a tibble saved into your R environment as “$my_dat$” with two columns named “$alpha$” and “$beta$”. You want to rename the “$beta$” column and call it “$gamma$”. Which of these will create a new tibble with the renamed column?

 
 
 
 

17. Which of the following are steps in the data-wrangling process?

 
 
 
 

18. Which tidyverse package is used for data import and management?

 
 
 
 

19. Suppose you have a tibble named “dat” that has a time, date, employee, and sales column.
You are reviewing someone’s R code and see the following lines:

my_time <- filter(dat,time == 1)
my_time_and_date <- filter(my_time,date>5)

group_by_employee_my_time_and_date <- group_by(my_time_and_date, employee)
summarise(group_by_employee_my_time_and_date, average=mean(sales))

Which of these would do the same thing using piping?

 
 
 
 

20. If there is missing data in a .csv file that you import, what should you do?

 
 
 
 

Tidyverse Quiz: 20 Questions to Challenge Your R Knowledge

  • Which one of these libraries is widely used for data manipulation in R?
  • What do you need to do to use tidyverse commands in R?
  • When you run the line: dat <- read_csv(“my_data.csv”). What kind of object is dat?
  • Which is NOT a principle of tidy data?
  • If there is missing data in a .csv file that you import, what should you do?
  • The tidyverse replaces the techniques for manipulating data with base R.
  • Which of the following are steps in the data-wrangling process?
  • Which of these are advantages of Tibbles over data frames?
  • Looking at tidyverse.org, how many core packages are included in the tidyverse?
  • Suppose you have a tibble called “cities” with columns including population (“population”), a measure of economic activity (“gdp”), and the state in which the city is located (“state”). Which of these commands would select rows from the dataset where the value for population is more than 3,000, the value for economic activity is less than 120,000, and the city is not located in Alabama?
  • Suppose you have a dataset that looks like this:
    colors <- c(“red”,”green”,”yellow”)
    speeds <- c(“slow”,”fast”,”medium”)
    my_dat <- data.frame(colors,speeds)
    What is the correct code to recode the “colors” column so that red equals 0, green equals 2, and yellow equals 1?
    Suppose you have a tibble named “dat” that has a time, date, employee, and sales column. You are reviewing someone’s R code and see the following lines:
    my_time <- filter(dat,time == 1)
    my_time_and_date <- filter(my_time,date>5)
    group_by_employee_my_time_and_date <- group_by(my_time_and_date, employee) summarise(group_by_employee_my_time_and_date, average=mean(sales))
    Which of these would do the same thing using piping?
  • Suppose you have a data frame named “dat” with two numeric columns, $value1$ and $value2$. You want to add a third column called $my_value$, where the value in each row is the product of multiplying the other two values in the row by one another. Which is the correct line of code?
  • Suppose you have a tibble saved into your R environment as “$my_dat$” with two columns named “$alpha$” and “$beta$”. You want to rename the “$beta$” column and call it “$gamma$”. Which of these will create a new tibble with the renamed column?
  • Suppose you have a tibble saved to the object $my_dat$ with two columns, $alpha$ and $beta$. These are filled with numeric data. Which of these will arrange the data in descending order by $alpha$?
  • Which of these accurately describes piping?
  • Which tidyverse package is used for data import and management?
  • To combine functions, use the ————.
  • Which of the following is NOT one of the four groups in the tidyverse library?
  • Functions contained in packages such as dplyr are used to:

Statistics, Data Analysis, and Quiz

MCQs Maps and Data Visualization in R 27

Put your R programming skills to the test with our MCQs Maps and Data Visualization in R Language quiz! This set of 20 multiple-choice questions covers essential topics like creating maps, plotting data, and mastering visualization techniques in R. Ideal for data scientists, analysts, and R enthusiasts, this quiz will help you sharpen your skills and deepen your understanding of data visualization. Take the quiz “MCQs Maps and Data Visualization in R Language now and level up your R programming expertise!

MCQs Maps and Data Visualization in R Language
Please go to MCQs Maps and Data Visualization in R 27 to view the test

Online MCQs Maps and Data Visualization in R Language

  • Using themes, you can change the colors and styles of the borders, backgrounds, lines, and text on a plot. What should you do if you want to completely remove one of these elements from the theme?
  • In a Leaflet map, which two statements describe the difference between the addCircles() and addCircleMarkers() functions?
  • Which package should be used to create a scatter plot?
  • Using the ggplot() method, which geometry function do you need to use to create a scatter plot?
  • Which statement best describes facets?
  • Which package can you use for extra themes and color scales for ggplot2?
  • Which function should you use if you want to add markers to display a specific location on a map that you draw?
  • Which two methods can be used to create scatter plots?
  • What is a leaflet?
  • The R command df %>% leaflet() %>% addTiles() is equivalent to what?
  • If I want to add popup icons to my leaflet map in R, I should use?
  • What is a histogram?
  • How do you add titles and labels to figures you create with plot()?
  • By default, what is the first argument in the plot() function?
  • Which of these statements about qplot() is NOT correct?
  • Load the `airquality’ dataset from the datasets package in R
    library(datasets)
    data(airquality)
    I am interested in examining how the relationship between ozone and wind speed varies across each month. What would be the appropriate code to visualize that using ggplot2?
  • The geom argument takes a string for a value.
  • Lattice plots are constructed with a single function call to a core lattice function (e.g. xyplot)
  • The lattice system is ideal for creating conditioning plots where you examine the same kind of plot under many different conditions.
  • The lattice system, like the base plotting system, returns a trellis plot object

MS Excel Quiz Questions

MCQs R Basics Quiz 26

The post is about the “MCQs R Basics Quiz” which will help you check your ability to execute some basic or R Language, RStudio, Jupyter Notebook, and Google Colab. This quiz will help the learner to understand some basic concepts related to R Programming Language. This quiz may also improve your computational understanding, and it will also help you to learn and practice the MCQs R Basics Quiz now.

Online MCQs R Basics Quiz with Answers
Please go to MCQs R Basics Quiz 26 to view the test

Online MCQs R Basics Quiz with Answers

  • Which of the following most accurately describes R?
  • Which of the following correctly describes the relationship between RStudio and R?
  • Which of these is the easiest way to save R code that you write for future use?
  • After you finish the trial period, R will cost hundreds of dollars to use, depending on the license you purchase.
  • You need to carefully learn and understand all the details about how R works before you start coding.
  • Are cheat sheets trustworthy guides for how to use R and RStudio?
  • What does this line of code do in R? a <- 2+2
  • Will R return a value of true or false if you evaluate this expression? “apple”==”appla”
  • What will happen if you try to run this line of code in R? 10variable1 <- c(5, 19, 10, “apple”)
  • In R, create the following object: test_vector <- c(“dog”, “fish”, “pig”, “parrot”). After you create the object, what do you get if you then run test_vector[4]?
  • What value will this return?
    subtract_and_divide <- function(x, y){
    x – y
    x / y
    }
    subtract_and_divide(4, 8)
  • What happens if you run this code? data.frame(alpha,beta)
  • What part of the data frame “states” does this code call? states[15,2]
  • Say you have a data frame named “inventory” with 3 rows and two columns, created like this:
    home <- c(“computer”, “calculator”, “scanner”)
    office <- c(“paper”, “pens”, “pencils”)
    inventory <- data.frame(home, office)
    What would happen if you ran this code? inventory$annex <- c(“printer”, “stapler”)
  • How many working directories can you have set simultaneously in an R session?
  • Is it easier to import rectangular or non-rectangular data into R?
  • You want to access the “Date” column of a data frame called sales_data so you can operate on it. What is the correct way to refer to this column?
  • What does the class() function do in R?
  • Why is it helpful to be able to use functions like rnorm, rpois, rbinom, and runif?
  • What is the easiest way to export a figure you create in RStudio?

MCQs Deep Learning Quiz