Skip to content

Module Three Summative Quiz:The Data Scientist’s Toolbox(Data Science Specialization):Answers2025

Question 1

What is a good example of a message to accompany a commit?

  • Modified linear model of height to include new covariate, genotype

  • ❌ Fixed problem with linear model

  • ❌ Updated thing

Explanation:
A good commit message should be clear, specific, and descriptive of the change. “Modified linear model…” clearly states what was changed and why, making version history understandable later.


Question 2

On each repository page in GitHub, in the top right corner there are three options. They are:

  • Watch, star, fork

  • ❌ Pull, clone, fork

  • ❌ Commit, contributors, issues

Explanation:
GitHub repositories show Watch (notifications), Star (favorite/bookmark), and Fork (copy repository to your account) options. These are standard GitHub repo actions.


Question 3

Which of the following will initiate a git repository locally?

  • git init

  • ❌ git remote add

  • ❌ git boom

Explanation:
git init initializes a new local Git repository.
git remote add connects an existing local repo to a remote one, and git boom is not a Git command.


Question 4

What is the correct order of commands to send a file to GitHub from within RStudio?

  • ❌ Commit > Push

  • Stage > Commit message > Commit > Push

  • ❌ Pull > Push > Commit

Explanation:
The proper Git workflow is:
1️⃣ Stage the changes →
2️⃣ Write a descriptive commit message →
3️⃣ Commit the changes locally →
4️⃣ Push them to GitHub.
Skipping “Stage” means nothing gets committed.


Question 5

How do you add all of the contents of a directory to version control?

  • git add .

  • ❌ cd ~/dir/name/of/path/to/file

  • ❌ git commit -m “Message”

Explanation:
git add . stages all files and folders in the current directory for commit.
cd only changes directories, and git commit records changes that have already been staged.


🧾 Summary Table

Q# ✅ Correct Answer(s) Key Concept
1 Modified linear model… Good commit messages are detailed and meaningful
2 Watch, star, fork GitHub’s main repository actions
3 git init Creates a new local repository
4 Stage > Commit message > Commit > Push Correct Git workflow in RStudio
5 git add . Adds all directory contents to version control