# COURSE 7 – DATA ANALYSIS WITH R PROGRAMMING QUIZ ANSWERS

## GOOGLE DATA ANALYTICS PROFESSIONAL CERTIFICATE

Enroll in Coursera Google Data Analytics

## Programing and Data Analytics INTRODUCTION

R is an open-source programming language used for statistical computing and graphics. As part of the Google Data Analytics Professional Certificate from Coursera, you will learn how to use R to conduct data analysis. This part of the course provides an introduction to R and its environment, RStudio.

RStudio offers a user-friendly environment that simplifies the process of working with R. It includes features such as console windows where users can type commands, tabbed windows for editing scripts, and tools for creating visualizations. By using these features within RStudio, you’ll be able to leverage the power of programming and data analytics more effectively than ever before.

## Learning Objectives

• Compare and contrast the R programming environment and the RStudio programming environment
• Describe the RStudio programming environment including its components and benefits
• Describe the R programming language and its programming environment
• Describe programming languages and appropriate use including examples
• Open R and execute a command
• Differentiate between the R Console and R programming environments
• Execute operations in R using mathematical operators such as +, -, *, and /
• Demonstrate how to complete basic tasks in R

## Test your knowledge on programming languages

### 1. Fill in the blank: Programming involves _ a computer to perform an action or set of actions.

• filtering
• instructing (Correct)
• training
• updating

Correct: Programming means giving instructions to a computer to perform an action or set of actions.

### 2. Which of the following are best practices for creating data frames? select all that apply.

• Columns should be named (Correct)
• Each column should contain the same number of data items (Correct)
• Rows should be named
• Data can be stored as many different types

Correct: Programming means giving instructions to a computer to perform an action or set of actions.

### 3. What are the benefits of using a programming language to work with your data? Select all that apply.

• Save time (Correct)
• Clarify the steps of your analysis (Correct)
• Easily reproduce and share your work (Correct)

Correct: There are three main benefits of using a programming language to work with your data. You can easily reproduce and share your work, save time, and clarify the steps of your analysis.

### 4. The R programming language can be used for which of the following tasks? Select all that apply.

• Gaming
• Statistical analysis (Correct)
• Data analysis (Correct)
• Visualization (Correct)

Correct: The R programming language can be used for statistical analysis, visualization, and data analysis.

## Test your knowledge on programming with rstudio

### 1. What type of software application is RStudio?

• Integrated development environment (Correct)
• Data visualization tool
• Source editor
• Database

Correct: RStudio is a type of software application known as an integrated development environment (IDE). An IDE brings together all the tools you may want to use in a single place.

### 2. RStudio includes which of the following panes? Select all that apply.

• Command pane
• Source editor pane (Correct)
• R console pane (Correct)
• Environment pane (Correct)

Correct: RStudio includes an R console pane for executing commands, a source editor pane for writing code, and an environment pane for managing loaded data.

### 3. If you write code directly in the R source editor, RStudio can save your code when you close your current session.

• True (Correct)
• False

Correct: If you write code directly in the R source editor, RStudio can save your code when you close your current session.

### 4. What are Python, JavaScript, SAS, Scala, and Julia?

• Integrated Development environments
• Databases
• Programming Languages (Correct)
• Web applications

Liking our content? Then don’t forget to add us to your bookmarks so you can find us easily!

## Data Analysis with R Programming Weekly Challenge 1

### 1. Fill in the blank: _____ are the words and symbols you use to write instructions for computers.

• Programming languages (Correct)
• Code languages
• Syntax languages
• Variable languages

Correct: Programming languages are the words and symbols you use to write instructions for computers.

### 3. Which of the following are benefits of open-source code? Select all that apply.

• Anyone can create an add-on package for the code (Correct)
• Anyone can fix bugs in the code (Correct)

Correct: The benefits of open-source code include the following: anyone can use the code for free, fix bugs in the code, and create add-on packages for the code.

### 4. For what reasons do many data analysts choose to use R? Select all that apply.

• R can create high quality visualizations (Correct)
• R can quickly process lots of data (Correct)
• R is a data-centric programming language (Correct)
• R is a closed source programming language

Correct: Many data analysts choose to use R because it can quickly process lots of data and create high quality visualization. R is also a data-centric programming language, designed to work with data.

### 5. Fill in the blank: A data analyst wants to quickly create visualizations and then share them with a teammate. They can use _____ for the analysis.

• a dashboard
• structured query language
• the R programming language (Correct)
• a database

Correct: It will be easy for the analyst to create visualizations and share the analysis if they use the R programming language for the analysis.

### 6. RStudio’s integrated development environment lets you perform which of the following actions? Select all that apply.

• Install R packages (Correct)
• Stream online videos
• Import data from spreadsheets (Correct)
• Create data visualizations (Correct)

Correct: RStudio’s integrated development environment lets you install R packages, import data from spreadsheets, and create data visualizations.

### 7. Fill in the blank: When you execute code in the source editor, the code automatically also appears in the _____.

• plots tab
• R console (Correct)
• files tab
• environment pane

Correct: When you execute code in the source editor, the code automatically also appears in the R console.

### 8. In RStudio, where can you find and manage all the data you currently have loaded?

• R console pane
• Plots tab
• Environment pane (Correct)
• Source editor pane

Correct: In RStudio, you can find and manage all the data you currently have loaded in the environment pane.

## Programing and Data Analytics CONCLUSION

R is a programming language that can streamline your data analysis process. In this part of the course, you learned about R and RStudio, the environment designed specifically for working in R. The benefits of using R and RStudio include efficiency and user-friendliness.

You also explored the components of RStudio that will help you get started coding in R. Now that you understand the basics of how to use R and RStudio, it’s time to put your knowledge into practice. Join the learning experience on Coursera today and gain access to hands-on exercises, real-world examples, and a community of learners just like you.

#### Subscribe to our site

Get new content delivered directly to your inbox.

## Quiztudy Top Courses

Liking our content? Then, don’t forget to ad us to your BOOKMARKS so you can find us easily!