Skip to content

Module 5 challenge :Data Analysis with R Programming (Google Data Analytics Professional Certificate) Answers 2025

Question 1

A data analyst wants to make an analysis easy to understand and reusable in the future. Which tool should they use?

R Markdown
❌ Code chunks
❌ Word Document
❌ PDF document

Explanation:
R Markdown combines code + text + visuals in a single reproducible report.
It lets others understand, rerun, or update analyses easily later on.


Question 2

An R Markdown notebook can be converted to which formats?

Slide presentations
Dashboards
Word documents
❌ Google Surveys

Explanation:
R Markdown supports many output formats:

  • HTML (for dashboards or websites)

  • Word documents (.docx)

  • PDFs

  • Slide presentations (like HTML slides or PowerPoint)


Question 3

Correct syntax for a hyperlinked text in Markdown:

link
❌ (link)[www.coursera.com]
❌ link**www.coursera.com
❌ >link–www.coursera.com<

Explanation:
Markdown hyperlink syntax →

[text to display](URL)

Question 4

Code written directly inside the .rmd file to show or execute inline with text is called:

Inline code
❌ Markdown
❌ YAML
❌ Documented

Explanation:
Inline code is used to embed R expressions inside text using backticks, e.g.:

The dataset has `r nrow(data)` rows.

Question 5

Which markdown text produces italicized text?

text
text
text
text (this is bold)

Explanation:
Use either asterisks *text* or underscores _text_ for italics.
Double asterisks or underscores (**text**) make bold text.


Question 6

Which sample correctly implements a code chunk in an .rmd file?

```{r}
value <- 8
Other examples

**Explanation:**
R code chunks must start and end with triple backticks and `{r}` to indicate R language.
This allows execution inside R Markdown.

---

### **Question 7**
What delimiter is used to indicate the **YAML metadata** section in R Markdown?

**---**
###
```{r}```

**Explanation:**
The YAML section (at the top of the file) is enclosed by triple dashes `---`:
```yaml
---
title: "My Report"
author: "Analyst"
output: html_document
---


Question 8

If an analyst repeatedly creates similar documents or reports, what can they use to save time?

a template
❌ an .rmd file
❌ a filter
❌ a code chunk

Explanation:
A template in R Markdown lets you reuse layouts, formats, or themes for reports.


🧾 Summary Table

Q# ✅ Correct Answer(s) Key Concept
1 R Markdown Reproducible reporting
2 Slide presentations, Dashboards, Word docs Export formats
3 link Markdown hyperlink syntax
4 Inline code Embedded dynamic R expressions
5 text, text Italics formatting
6 {r} ... Code chunk syntax
7 YAML delimiters
8 Template Reusable document structure