-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.Rmd
113 lines (64 loc) · 2.39 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
title: Interactive learning demo for Mrs. S.
subtitle: (Use down arrow to advance)
author: Gary Vanzin
widgets: [mathjax, bootstrap, quiz]
hitheme: solarized_light
mode: selfcontained
github: {user: gvanzin, repo: quiz_example}
---
## Quiz
The quiz widget allows a user to create interactive quizzes. Q&A options include:
1. Radio
2. Checkbox
3. Multi Text
4. Submit Compare
--- &radio
What is 1 + 1?
1. 1
2. _2_
3. 3
4. 4
*** .hint
Not 1, 3, or 4
*** .explanation
Come on people, it's 1 + 1
--- &radio
What is the volume of this rectangular prism?
image: 
1. 800 cubic units
2. _400 cubic units_
3. 100 cubic units
4. 80 cubic units
*** .hint
Volume of a rectangle = length X width X height.
--- &checkbox
Solve the following equation for X:
2X - 10 = 8 - X
1. _6_
2. 22
3. Banana
*** .hint
It's not Banana
*** .explanation
Add X to both sides of the equation. Add 10 to both sides of the equation. The equation becomes 3X = 18. Dive both sides by 3. X then equals 6.
--- &multitext .codefont .outfont .codemargin .outmargin
Harry Potter and the Sorcerer's Stone - 152 minutes
Harry Potter and the Chamber of Secrets - 161 minutes
Harry Potter and the Prisoner of Azkaban - 142 minutes
Harry Potter and the Goblet of Fire - 157 minutes
Harry Potter and the Order of the Phoenix - 138 minutes
Harry Potter and the Half-Blood Prince - 153 minutes
Harry Potter and the Deathly Hallows: Part 1 - 146 minutes
Harry Potter and the Deathly Hallows: Part 2 - 130 minutes
1. What is the average (mean) length of a Harry Potter movie?
2. What is the median length of a Harry Potter movie?
3. What is the range of the Harry Potter movie lengths? (answer is two numbers separated by a space)
*** .explanation
1. <span class='answer'>`r (mean(152, 161, 142, 157, 138, 153, 146, 130))`</span>
2. <span class='answer'>`r (median(c(130, 138, 142, 146, 152, 153, 157, 161)))`</span>
3. <span class='answer'>`r (min(c(130, 138, 142, 146, 152, 153, 157, 161)))`</span> <span class='answer'>`r (max(c(130, 138, 142, 146, 152, 153, 157, 161)))`</span>
*** .hint
Mean = sum of all observations divided by the number of observations. To calculate the median, put the numbers in order, and find the one in the middle. If there are two middle numbers, average them. The range is the smallest and the largest numbers.
---
Let me know if you want help building quizzes like this!