Skip to content

Instantly share code, notes, and snippets.

@mGalarnyk
Last active September 16, 2022 07:36
Show Gist options
  • Save mGalarnyk/61904891779189670accef5540d7348f to your computer and use it in GitHub Desktop.
Save mGalarnyk/61904891779189670accef5540d7348f to your computer and use it in GitHub Desktop.
The Data Scientist's Toolbox Quiz 2 (Week 2) John Hopkins Data Science Specialization Coursera for the github repo https://github.com/mGalarnyk/datasciencecoursera/tree/master/1_Data_Scientist_Toolbox

The Data Scientist's Toolbox Quiz 2 (JHU) Coursera

github repo for rest of specialization: Data Science Coursera

Question 1

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

  • mkdir /Users/data

  • mkdir data

  • pwd data

  • mkdir ../data

Answer:
mkdir data

Question 2

Which of the following will initiate a git repository locally?

  • git merge

  • git pull

  • git init

  • git push

Answer:
git init

Question 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?

(For this question assume that your user name is username)

Answer:

Question 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

Option 1: 
*h2 Data Science Specialization

* Uses R

* Nine courses

* Goes from raw data to data product
Option 2:
### Data Science Specialization

* Uses R

* Nine courses

* Goes from raw data to data products
Option 3:
## Data Science Specialization

li Uses R

li Nine courses

li Goes from raw data to data products
Option 4:
*** Data Science Specialization

* Uses R

* Nine courses

* Goes from raw data to data products
Option 5:
## Data Science Specialization

* Uses R

* Nine courses

* Goes from raw data to data products

Answer:

## Data Science Specialization

* Uses R

* Nine courses

* Goes from raw data to data products

Question 5

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

  • Copyright KernSmooth 1997-2009

  • Copyright M. P. Wand 1997-2013

  • Copyright M. P. Wand 1997-2009

  • Copyright Coursera 2009-2013

install.packages("KernSmooth")
library("KernSmooth")

# Answer
# Copyright M. P. Wand 1997-2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment