Data Science Quiz focuses on “Literate Statistical Programming”.
1. Original idea comes of Literate Statistical Practice from _______________
a) Don Knuth
b) Don Cutting
c) Douglas Cutting
d) All of the mentioned
Answer: a
Explanation: Literate programs are tangled to produce machine readable documents.
2. Point out the correct statement.
a) An article is stream of code and text
b) Analysis code is divided in to code chunks only
c) Literate programs are tangled to produce human readable documents
d) None of the mentioned
Answer: a
Explanation: Analysis code is divided in to code chunks and text.
3. Which of the following is required for literate programming?
a) documentation language
b) mapper language
c) reducer language
d) all of the mentioned
Answer: a
Explanation: Programming language is also required for literate programming.
4. Which of the following is required to implement a literate programming system?
a) A programming language like Perl
b) A programming language like Java
c) A programming language like R
d) All of the mentioned
Answer: c
Explanation: R is a language and environment for statistical computing and graphics.
5. Which of the following way is required to make work reproducible?
a) keep track of things
b) Save output
c) Save data in proprietary formats
d) None of the mentioned
Answer: a
Explanation: Save data in NON proprietary formats to make work reproducible.
6. Which of the following disadvantage does literate programming have?
a) Slow processing of documents
b) Code is not automatic
c) No logical order
d) All of the mentioned
Answer: a
Explanation: Code and text is in one place.
7. knitr supports only one documentation language.
a) True
b) False
Answer: b
Explanation: knitr supports various documentation languages.
8. Which of the following tool documentation language is supported by knitr?
a) RMarkdown
b) LaTeX
c) HTML
d) None of the mentioned
Answer: a
Explanation: knitr is available on CRAN.
9. Which of the following package by Yihui is built in to RStudio environment?
a) rpy2
b) knitr
c) ggplot2
d) none of the mentioned
Answer: b
Explanation: It can be exported to pdf and html.
10. Literate program code is live-automatic “regression test” when building a document.
a) True
b) False
Answer: a
Explanation: Data and results are automatically updated to reflect external changes.