Data Scientist’s Toolbox Quiz 2

This is Quiz 2 from the Data Scientist’s toolbox course within the Data Science Specialization. This publication is intended as a learning resource, all answers are documented and explained.

Questions


1. Which of the following commands will create a directory called data in your current working directory?


  • mkdir data


Explanation:

Creates directory in working directory.


2. Which of the following will initiate a git repository locally?


  • git init


Explanation:

Initiaties local repository.


3. Suppose you have forked a repository called datascientist on Github but it isn’t on your local computer yet. Which of the following is the command to bring the directory to your local computer?



Explanation:

If you don’t have a local copy of the repo you use the clone command to create a new directory and remote tracking branches fro each branch. The pull command is used to update repos that are already local.


4. Which of the following will create a markdown document with a secondary heading saying “Data Science Specialization” and an unordered list with the following for bullet points: Uses R, Nine courses, Goes from raw data to data products


  • “## Data Science Specialization

  • Uses R

  • Nine courses

  • Goes from raw data to data products"


Explanation:

Self-explanatory


5. Install and load the KernSmooth R package. What does the copyright message say?


  • Copyright M. P. Wand 1997-2009


Explanation:

Run code:

require(KernSmooth)
## Loading required package: KernSmooth
## KernSmooth 2.23 loaded
## Copyright M. P. Wand 1997-2009

Website: http://www.ryantillis.com/