Literate Statistical Programming

Question 1
Marks : +2 | -2
Pass Ratio : 100%
What is one way in which the knitr system differs from Sweave?
knitr allows for the use of markdown instead of LaTeX
knitr is written in python instead of R
knitr lacks features like caching of code chunks
none of the mentioned
Explanation:
knitr is an engine for dynamic report generation with R.
Question 2
Marks : +2 | -2
Pass Ratio : 100%
Which of the following disadvantage does literate programming have?
Slow processing of documents
Code is not automatic
No logical order
All of the mentioned
Explanation:
Code and text is in one place.
Question 3
Marks : +2 | -2
Pass Ratio : 100%
Dependencies are checked explicitly in caching caveats.
True
False
Explanation:
Dependencies are not checked explicitly in caching caveats.
Question 4
Marks : +2 | -2
Pass Ratio : 100%
What is the role of processing code in the research pipeline?
Transforms the analytical results into figures and tables
Transforms the analytic data into measured data
Transforms the measured data into analytic data
All of the mentioned
Explanation:
Data science workflow is a non-linear, iterative process.
Question 5
Marks : +2 | -2
Pass Ratio : 100%
Original idea comes of Literate Statistical Practice from _______________
Don Knuth
Don Cutting
Douglas Cutting
All of the mentioned
Explanation:
Literate programs are tangled to produce machine readable documents.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
Some chunks have to be re-computed every time you re-knit the file.
True
False
Explanation:
All chunks have to be re-computed every time you re-knit the file.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
Which of the following package by Yihui is built in to RStudio environment?
rpy2
knitr
ggplot2
none of the mentioned
Explanation:
It can be exported to pdf and html.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
Which of the following is useful way to put text, code, data, output all in one document?
Literate statistical programming
Object oriented programming
Descriptive programming
All of the mentioned
Explanation:
Object-oriented programming is a programming language model organized around objects rather than “actions” and data rather than logic.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
Literate program code is live-automatic “regression test” when building a document.
True
False
Explanation:
Data and results are automatically updated to reflect external changes.
Question 10
Marks : +2 | -2
Pass Ratio : 100%
knitr supports only one documentation language.
True
False
Explanation:
knitr supports various documentation languages.