Skip to content

Commit b757b49

Browse files
committed
add week 2/3 quizzes
1 parent 141a4fd commit b757b49

File tree

8 files changed

+21444
-21241
lines changed

8 files changed

+21444
-21241
lines changed

_quarto.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ project:
33
render:
44
- "*.qmd"
55
- "*.md"
6+
- "!quiz/*"
67

78
knitr:
89
opts_chunk:

detect_images

100755100644
File mode changed.

quiz/week2.Rmd

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: Week 2 Knowledge Check
3+
output:
4+
moodlequiz::moodlequiz:
5+
replicates: 1
6+
moodlequiz:
7+
category: rcp-week2
8+
---
9+
10+
# Elements of a Quarto file
11+
12+
## Elements of a Quarto file
13+
14+
In a Quarto file, chunks are used to `r cloze("write R commands", c("highlight important sections", "write R commands", "add text into the document", "write commands, highlight sections and add text to the document"))`
15+
16+
The three key elements of a Quarto file are:
17+
18+
`r cloze(c("YAML", "R Code Chunks", "Markdown Text"), c("Title","R Code Chunks", "Markdown Text", "PDF Outputs", "YAML"))`
19+
20+
## Creating projects
21+
22+
A project should have all of the `r cloze("resources", c("resources", "money", "hardware", "version control"))` for a piece of analysis.
23+
24+
Projects `r cloze("can", c("can", "cannot"))` be created from an existing folder.
25+
26+
## Literate programming
27+
28+
Literate programming is an approach to writing reports using software that waves together the `r cloze("Source code", c("Source code", "Document formatting", "Statistical Knowledge"))` and `r cloze("text", c("YAML", "storytelling", "text", "version control"))` using literate programming.
29+
30+
## Explaining your answers {type=essay}
31+
32+
**Explaining your answers**
33+
34+
For any question you aren't sure about, write about your thought process below. This is only used for checking your understanding!

quiz/week2.xml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<quiz>
3+
<question type="category">
4+
<questiontext format="html">
5+
<text><![CDATA[
6+
7+
]]></text>
8+
</questiontext>
9+
10+
<category><text>$course$/rcp-week2</text></category>
11+
</question>
12+
13+
<question type="category">
14+
<questiontext format="html">
15+
<text><![CDATA[
16+
17+
]]></text>
18+
</questiontext>
19+
20+
<name><text>Elements of a Quarto file</text></name>
21+
<category><text>$course$/rcp-week2/elements-of-a-quarto-file</text></category>
22+
</question>
23+
24+
<question type="cloze">
25+
<questiontext format="html">
26+
<text><![CDATA[
27+
28+
<p>In a Quarto file, chunks are used to {1:MULTICHOICE:%0%highlight important sections#~%100%write R commands#~%0%add text into the document#~%0%write commands, highlight sections and add text to the document#}</p>
29+
<p>The two key elements of a Quarto file are:</p>
30+
<p>{1:MULTIRESPONSE:%0%Title#~%100%R Code Chunks#~%100%Markdown Text#~%0%PDF Outputs#~%100%YAML#}</p>
31+
]]></text>
32+
</questiontext>
33+
34+
<name><text>Q1: Elements of a Quarto file</text></name>
35+
</question>
36+
37+
<question type="cloze">
38+
<questiontext format="html">
39+
<text><![CDATA[
40+
41+
<p>A project should have all of the {1:MULTICHOICE:%100%resources#~%0%money#~%0%hardware#~%0%version control#} for a piece of analysis.</p>
42+
<p>Projects {1:MULTICHOICE:%100%can#~%0%cannot#} be created from an existing folder.</p>
43+
]]></text>
44+
</questiontext>
45+
46+
<name><text>Q2: Creating projects</text></name>
47+
</question>
48+
49+
<question type="cloze">
50+
<questiontext format="html">
51+
<text><![CDATA[
52+
53+
<p>Literate programming is an approach to writing reports using software that waves together the {1:MULTICHOICE:%100%Source code#~%0%Document formatting#~%0%Statistical Knowledge#} and {1:MULTICHOICE:%0%YAML#~%0%storytelling#~%100%text#~%0%version control#} using literate programming.</p>
54+
]]></text>
55+
</questiontext>
56+
57+
<name><text>Q3: Literate programming</text></name>
58+
</question>
59+
60+
<question type="essay">
61+
<questiontext format="html">
62+
<text><![CDATA[
63+
64+
<p><strong>Explaining your answers</strong></p>
65+
<p>For any question you aren’t sure about, write about your thought process below. This is only used for checking your understanding!</p>
66+
]]></text>
67+
</questiontext>
68+
69+
<name><text>Q4: Explaining your answers</text></name>
70+
</question>
71+
</quiz>

quiz/week3.Rmd

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: Week 3 Knowledge Check
3+
output:
4+
moodlequiz::moodlequiz:
5+
replicates: 1
6+
moodlequiz:
7+
category: rcp-week3
8+
---
9+
10+
## Command Line Interface
11+
12+
Complete this command to make a local copy of a GitHub repository on our computer:
13+
14+
```
15+
git `r cloze("clone", c("cd", "mv", "commit", "clone"))` [email protected]:numbats/rcp.git
16+
```
17+
18+
Complete this command to print the present working directory:
19+
20+
```
21+
`r cloze("pwd", c("pwd", "mv", "cd", "touch"))
22+
```
23+
24+
## `git`
25+
26+
`git` is considered a `r cloze("distributed", c("local", "centralised", "non-distributed", "distributed"))` control system.
27+
28+
The three states of the `git` filesystem are
29+
30+
* `r cloze(c("Working directory"), c("Working directory", "Save", "Clone"))`
31+
* `r cloze(c("Staging area"), c("Saving area", "Stage", "Staging area", "Save"))`
32+
* `r cloze(c("git directory"), c("Clone directory", "Commit directory", "git directory"))`
33+
34+
`git` and GitHub work together for version control. We use GitHub `r cloze("in the cloud", c("in the cloud", "locally"))`, and `git` `r cloze("locally", c("in the cloud", "locally")).
35+
36+
37+
## Explaining your answers {type=essay}
38+
39+
**Explaining your answers**
40+
41+
For any question you aren't sure about, write about your thought process below. This is only used for checking your understanding!

quiz/week3.xml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<quiz>
3+
<question type="category">
4+
<questiontext format="html">
5+
<text><![CDATA[
6+
7+
]]></text>
8+
</questiontext>
9+
10+
<category><text>$course$/rcp-week3</text></category>
11+
</question>
12+
13+
<question type="cloze">
14+
<questiontext format="html">
15+
<text><![CDATA[
16+
17+
<p>Complete this command to make a local copy of a GitHub repository on our computer:</p>
18+
<pre><code>git {1:MULTICHOICE:%0%cd#~%0%mv#~%0%commit#~%100%clone#} [email protected]:numbats/rcp.git</code></pre>
19+
<p>Complete this command to print the present working directory:</p>
20+
<p>`<code>`{1:MULTICHOICE:%100%pwd#~%0%mv#~%0%cd#~%0%touch#}`{=html}</code></p>
21+
]]></text>
22+
</questiontext>
23+
24+
<name><text>Q1: Command Line Interface</text></name>
25+
</question>
26+
27+
<question type="cloze">
28+
<questiontext format="html">
29+
<text><![CDATA[
30+
31+
<p><code>git</code> is considered a {1:MULTICHOICE:%0%local#~%0%centralised#~%0%non-distributed#~%100%distributed#} control system.</p>
32+
<p>The three states of the <code>git</code> filesystem are</p>
33+
<ul>
34+
<li>{1:MULTICHOICE:%100%Working directory#~%0%Save#~%0%Clone#}</li>
35+
<li>{1:MULTICHOICE:%0%Saving area#~%0%Stage#~%100%Staging area#~%0%Save#}</li>
36+
<li>{1:MULTICHOICE:%0%Clone directory#~%0%Commit directory#~%100%git directory#}</li>
37+
</ul>
38+
<p><code>git</code> and GitHub work together for version control. We use GitHub {1:MULTICHOICE:%100%in the cloud#~%0%locally#}, and <code>git</code> `r cloze(“locally”, c(“in the cloud”, “locally”)).</p>
39+
]]></text>
40+
</questiontext>
41+
42+
<name><text>Q2: git</text></name>
43+
</question>
44+
45+
<question type="essay">
46+
<questiontext format="html">
47+
<text><![CDATA[
48+
49+
<p><strong>Explaining your answers</strong></p>
50+
<p>For any question you aren’t sure about, write about your thought process below. This is only used for checking your understanding!</p>
51+
]]></text>
52+
</questiontext>
53+
54+
<name><text>Q3: Explaining your answers</text></name>
55+
</question>
56+
</quiz>

week11/images/com2.png

-587 KB
Binary file not shown.

0 commit comments

Comments
 (0)