<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/assets/xslt/atom.xslt" ?>
<?xml-stylesheet type="text/css" href="/assets/css/atom.css" ?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>https://www.R-exams.org/</id>
	<title>R/exams</title>
	<updated>2026-01-07T04:53:55+01:00</updated>
	<subtitle>Automatic generation  and evaluation of exams. From Markdown, LaTeX and R code to standalone documents, learning management systems and live voting.</subtitle>
	
		
		<author>
			
				<name>Achim Zeileis</name>
			
			
				<email>Achim.Zeileis@R-project.org</email>
			
			
				<uri>https://eeecon.uibk.ac.at/~zeileis/</uri>
			
		</author>
	
	<link href="https://www.R-exams.org/atom.xml" rel="self" type="application/rss+xml" />
	<link href="https://www.R-exams.org/" rel="alternate" type="text/html" />
	<generator uri="http://jekyllrb.com" version="4.2.2">Jekyll</generator>
	
    
    
		<entry>
			<id>https://www.R-exams.org/templates/penguins/</id>
			<title>penguins: Cloze Quiz for Exploratory Analysis of Penguins Data</title>
			<link href="https://www.R-exams.org/templates/penguins/" rel="alternate" type="text/html" title="penguins: Cloze Quiz for Exploratory Analysis of Penguins Data" />
			<updated>2026-01-07T00:00:00+01:00</updated>
			
				
				<author>
					
						<name>Achim Zeileis</name>
					
					
						<email>Achim.Zeileis@R-project.org</email>
					
					
						<uri>https://eeecon.uibk.ac.at/~zeileis/</uri>
					
				</author>
			
			<summary>Cloze exercise exploring sex differences in body mass for a randomly selected species of penguins, based on the eponymous data in base R.</summary>
			<content type="html" xml:base="https://www.R-exams.org/templates/penguins/">&lt;p&gt;Cloze exercise exploring sex differences in body mass for a randomly selected species of penguins, based on the eponymous data in base R.&lt;/p&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Name:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;penguins&lt;/code&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Type:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/tag/cloze/&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;cloze&lt;/code&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Related:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/templates/lm2/&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;lm2&lt;/code&gt;&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/boxhist2/&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;boxhist2&lt;/code&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t20 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Preview:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;div class=&quot;webex-group&quot;&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;The &lt;code&gt;penguins&lt;/code&gt; data in base R provides various measurements of adult penguins from three different species. See &lt;code&gt;?penguins&lt;/code&gt; for more details. Originally, the data was used to study sex dimorphism separately for the three species.&lt;/p&gt; &lt;p&gt;The first three rows of the data can be inspected as follows. Employ &lt;code&gt;summary()&lt;/code&gt; to obtain a first overview.&lt;/p&gt; &lt;pre&gt;&lt;code&gt;data(&amp;quot;penguins&amp;quot;, package = &amp;quot;datasets&amp;quot;) head(penguins, 3)&lt;/code&gt;&lt;/pre&gt; &lt;pre&gt;&lt;code&gt;## species island bill_len bill_dep flipper_len body_mass sex year ## 1 Adelie Torgersen 39.1 18.7 181 3750 male 2007 ## 2 Adelie Torgersen 39.5 17.4 186 3800 female 2007 ## 3 Adelie Torgersen 40.3 18.0 195 3250 female 2007&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Explore the sex differences with respect to body mass (weight, in grams) of the penguins. Create parallel boxplots of weight by sex, such as the one below, separately for the three species.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAMAAAD8CC+4AAAC9FBMVEUAAAABAQECAgIDAwMEBAQFBQUGBgYHBwcICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8QEBARERESEhITExMUFBQVFRUWFhYXFxcYGBgZGRkaGhobGxscHBwdHR0eHh4fHx8gICAhISEiIiIjIyMkJCQlJSUmJiYnJycoKCgpKSkqKiorKyssLCwtLS0uLi4vLy8wMDAxMTEyMjIzMzM0NDQ1NTU2NjY3Nzc4ODg5OTk6Ojo7Ozs8PDw9PT0+Pj4/Pz9AQEBBQUFCQkJDQ0NERERFRUVGRkZHR0dISEhJSUlKSkpLS0tMTExNTU1OTk5PT09QUFBRUVFSUlJTU1NUVFRVVVVWVlZXV1dYWFhZWVlaWlpcXFxdXV1eXl5fX19gYGBiYmJjY2NkZGRlZWVmZmZnZ2doaGhpaWlqampra2tsbGxtbW1ubm5vb29wcHBxcXFycnJzc3N0dHR1dXV2dnZ3d3d4eHh5eXl6enp7e3t8fHx9fX1+fn5/f3+AgICBgYGCgoKDg4OEhISFhYWGhoaHh4eIiIiJiYmKioqLi4uMjIyNjY2Ojo6Pj4+QkJCRkZGSkpKTk5OUlJSVlZWWlpaXl5eYmJiZmZmampqbm5ucnJydnZ2enp6fn5+goKChoaGioqKjo6OkpKSlpaWmpqanp6eoqKipqamqqqqrq6usrKytra2urq6vr6+wsLCxsbGysrKzs7O0tLS1tbW2tra3t7e4uLi5ubm6urq7u7u8vLy9vb2+vr6/v7/AwMDBwcHCwsLDw8P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5ohd2qd+0aydP9PWVh/m80OOzxqOkzhV9QHblL2pHnxqxvpjdrIxePcYKakW/0ugx+YCneqLvkv4l+uCYPaK/1OSc/O/1wHG/iN6jL3Pd8USvHmMFtaJ/LrnOLgd7ol8Jmyb/4qMUsentEP1y8+QFy/oHbftF9NyAOVtnJwblXHBFrx5jBbWinwru+eG6QVHh37jP3mdJT/51WlQ/scdnh+jsx8fuaNx96y+/vV99Ijp66NFnw5e5r9OrxlhB7X/TN94T0mHB4eTWnuv05Z1CkyZfFXt8Vo8OHCA6QYhOEKIThOgEITpBiE4QohOE6AQhOkGIThCiE4ToBCE6QYhOEKIThOgEITpBiE4QohOE6AQhOkGIThCiE4ToBCE6QYhOEKIThOgEITpBiE4QojP2+t3BiZNLal6Krm+7UsbGx/8k+ri4QXS2RHpyxR+kl2peiu5E2HS2o/5G0cfFD6Kz7DvlDy/PueWl6BY23NNmrOjD4gjR2XRp7Nbr8m3NS9FV9AxNvCz6sDhCdFY6u50U9OC+mperY+zvUp7oo+IJ0V1Or0yNuVnzUnTFaUkh34k8Hs4Qnd3/tPxhqXSu5qXo/hh3Nr1Xhejj4gfRWW6D59bOTMyqeSm6nQFr2e6At0QfFz+Izm5MSmqYmHOu+qXobtw1VP6vEyNOij4wbhCdIEQnCNEJQnSCEJ0gRCcI0QlCdIIQnSBEJwjRCUJ0ghCdIEQnCNEJQnSCEJ0gRCcI0QlCdIIQnSBEJwjRCUJ0ghCdIEQn6P8BxUqPZQdah3UAAAAASUVORK5CYII=&quot; download=&quot;boxplots-1.png&quot; /&gt;&lt;/p&gt; &lt;p&gt;Which species does this plot pertain to? &lt;input class=&quot;webex-solveme&quot; id=&quot;webex-21a3579e0722b4ef202bc775af769154&quot; size=&quot;11&quot; data-answer=&quot;aRMiW1xZShFCVkIQPw==&quot; /&gt;&lt;/p&gt; &lt;p&gt;To complement the plot complete the corresponding table of groupwise statistics:&lt;/p&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th align=&quot;left&quot;&gt;&lt;/th&gt; &lt;th align=&quot;left&quot;&gt;median&lt;/th&gt; &lt;th align=&quot;left&quot;&gt;mean&lt;/th&gt; &lt;th align=&quot;left&quot;&gt;std. deviation&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;female&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-8917abc42c667c96a1bce2d0b3cdc8d4&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;YxsCAlRSQWk=&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-4fe72283b33b282a78e912f9021256f9&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;b0RWAgAFFgFSBgtaAAsHUw4MR2Q=&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-0776fcb3e185aa864fbb9a54711f63ee&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;axUFDlNNUQBWCAkEVlAABQRRQD8=&quot; /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;male&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-ec3b526538db5c8a445e554993c4d2d7&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;PkEAWwACFGg=&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-818f40d8d053b89321b7a90d362ca1fb&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;YxMLXwcISgFTAAALWgoKBgAIQGo=&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-b6aefa12a537ea8499177e9492c59b9b&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;ORRSU1RPAAFWAAYHVVcABQsIE2o=&quot; /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;The average weight difference of &lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-d13dd608f987a0389c63a2b0e7883a71&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;PxMHVVUYBw5SDggCWQgBCwxQFG4=&quot; /&gt; is thus slightly &lt;select class=&quot;webex-select&quot; id=&quot;webex-aaa0b19b32c7aff2694e04c4673167e3&quot; data-answer=&quot;OlBNAD8=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;higher&lt;/option&gt;&lt;option&gt;lower&lt;/option&gt;&lt;/select&gt; than the median weight difference of &lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-ccbae1fa8ec340deb1d4db9ab9398925&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;OEFWUVUTOw==&quot; /&gt;.&lt;/p&gt; &lt;p&gt;Compute the full &lt;code&gt;summary()&lt;/code&gt; of weight by sex for this species and select the correct statements in the following list.&lt;/p&gt; &lt;div id=&quot;webex-d357dce01a0e51cabf9a914ee59d2b40&quot; class=&quot;webex-checkboxgroup&quot; data-answer=&quot;PwMZBkhTOA==&quot;&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;d357dce01a0e51cabf9a914ee59d2b40&quot; /&gt;&lt;span&gt;Less than half of the male penguins weigh more than 3731.25 grams.&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;d357dce01a0e51cabf9a914ee59d2b40&quot; /&gt;&lt;span&gt;None of the penguins weighs less than 2700 grams.&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;d357dce01a0e51cabf9a914ee59d2b40&quot; /&gt;&lt;span&gt;The standard deviation of weight is lower for males compared to females.&lt;/span&gt;&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;One way to obtain the exploratory boxplots separately for the three species is:&lt;/p&gt; &lt;pre&gt;&lt;code&gt;par(mfrow = c(1, 3)) for(i in levels(penguins$species)) plot(body_mass ~ sex, data = penguins, subset = species == i, main = i, ylim = range(penguins$body_mass, na.rm = TRUE))&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;img src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABUYAAAHCCAMAAAAU8eOOAAADAFBMVEUAAAABAQECAgIDAwMEBAQFBQUGBgYHBwcICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8QEBARERESEhITExMUFBQVFRUWFhYXFxcYGBgZGRkaGhobGxscHBwdHR0eHh4fHx8gICAhISEiIiIjIyMkJCQlJSUmJiYnJycoKCgpKSkqKiorKyssLCwtLS0uLi4vLy8wMDAxMTEyMjIzMzM0NDQ1NTU2NjY3Nzc4ODg5OTk6Ojo7Ozs8PDw9PT0+Pj4/Pz9AQEBBQUFCQkJDQ0NERERFRUVGRkZHR0dISEhJSUlKSkpLS0tMTExNTU1OTk5PT09QUFBRUVFSUlJTU1NUVFRVVVVWVlZXV1dYWFhZWVlaWlpbW1tcXFxdXV1eXl5fX19gYGBhYWFiYmJjY2NkZGRlZWVmZmZnZ2doaGhpaWlqampra2tsbGxtbW1ubm5vb29wcHBxcXFycnJzc3N0dHR1dXV2dnZ3d3d4eHh5eXl6enp7e3t8fHx9fX1+fn5/f3+AgICBgYGCgoKDg4OEhISFhYWGhoaHh4eIiIiJiYmKioqLi4uMjIyNjY2Ojo6Pj4+QkJCRkZGSkpKTk5OUl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FEA0EKNAoAWahQAtFCjAKCFGgUALdQoAGihRgFACzUKAFqoUQDQQo0CgBZqFAC0UKMAoIUaBQAt1CgAaKFGAUALNQoAWqhRANBCjQKAlrTU6KfLMn8u/1elKn1HqYWr4r4e1BcJSpfgBNNRo2Vn9DjpPKXuPvC/Dl6y5vDP3m3n2mscIgAJSpfoBNNRo4sPrdx8d8XHbb9Rk89Q/9P7B7PjviDUEwlKl+gE01Gj6sJDrnpLTW/RtWuXC5TqPijuy0G9kaB0SU4wHTW65vM1U1p9vKCTUqWz1UffO2Rl3BeEeiJB6RKdYDpqdPahr77RenHlMeMX9nyusuuMRy6K+4JQTyQoXaITTEeNqglnXT1LqWXX9LpPvXqrqhy4OO4LQj2RoHRJTjAlNQoAplCjAKCFGgUALdQoAGihRgFACzUKAFqoUQDQQo0CgBZqFAC0UKMAoIUaBQAt1CgAaKFGAUALNQoAWqhRANBCjQKAFmoUALT8P2UB/Ao3OKWxAAAAAElFTkSuQmCC&quot; download=&quot;boxplots3-1.png&quot; /&gt;&lt;/p&gt; &lt;p&gt;The question shows the parallel boxplots for the Chinstrap species.&lt;/p&gt; &lt;p&gt;Groupwise statistics of body mass by sex and species (including mean, median, and standard deviation) can be obtained by aggregating the data with the combined &lt;code&gt;summary()&lt;/code&gt; and &lt;code&gt;sd()&lt;/code&gt; functions.&lt;/p&gt; &lt;pre&gt;&lt;code&gt;aggregate(body_mass ~ sex + species, data = penguins, FUN = function(x) c(summary(x), `Std. dev.` = sd(x)))&lt;/code&gt;&lt;/pre&gt; &lt;pre&gt;&lt;code&gt;## sex species body_mass.Min. body_mass.1st Qu. body_mass.Median ## 1 female Adelie 2850.0000 3175.0000 3400.0000 ## 2 male Adelie 3325.0000 3800.0000 4000.0000 ## 3 female Chinstrap 2700.0000 3362.5000 3550.0000 ## 4 male Chinstrap 3250.0000 3731.2500 3950.0000 ## 5 female Gentoo 3950.0000 4462.5000 4700.0000 ## 6 male Gentoo 4750.0000 5300.0000 5500.0000 ## body_mass.Mean body_mass.3rd Qu. body_mass.Max. body_mass.Std. dev. ## 1 3368.8356 3550.0000 3900.0000 269.3801 ## 2 4043.4932 4300.0000 4775.0000 346.8116 ## 3 3527.2059 3693.7500 4150.0000 285.3339 ## 4 3938.9706 4100.0000 4800.0000 362.1376 ## 5 4679.7414 4875.0000 5200.0000 281.5783 ## 6 5484.8361 5700.0000 6300.0000 313.1586&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Based on this the remaining elements of the question can be answered.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;The &lt;code&gt;penguins&lt;/code&gt; data in base R provides various measurements of adult penguins from three different species. See &lt;code&gt;?penguins&lt;/code&gt; for more details. Originally, the data was used to study sex dimorphism separately for the three species.&lt;/p&gt; &lt;p&gt;The first three rows of the data can be inspected as follows. Employ &lt;code&gt;summary()&lt;/code&gt; to obtain a first overview.&lt;/p&gt; &lt;pre&gt;&lt;code&gt;data(&amp;quot;penguins&amp;quot;, package = &amp;quot;datasets&amp;quot;) head(penguins, 3)&lt;/code&gt;&lt;/pre&gt; &lt;pre&gt;&lt;code&gt;## species island bill_len bill_dep flipper_len body_mass sex year ## 1 Adelie Torgersen 39.1 18.7 181 3750 male 2007 ## 2 Adelie Torgersen 39.5 17.4 186 3800 female 2007 ## 3 Adelie Torgersen 40.3 18.0 195 3250 female 2007&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Explore the sex differences with respect to body mass (weight, in grams) of the penguins. Create parallel boxplots of weight by sex, such as the one below, separately for the three species.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAMAAAD8CC+4AAAC4lBMVEUAAAABAQECAgIDAwMEBAQFBQUGBgYHBwcICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8QEBARERESEhITExMUFBQVFRUWFhYXFxcYGBgZGRkaGh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does this plot pertain to? &lt;input class=&quot;webex-solveme&quot; id=&quot;webex-b62230cc2b07c04870fcb2b75d895083&quot; size=&quot;11&quot; data-answer=&quot;ORRzVlZcCgYQPw==&quot; /&gt;&lt;/p&gt; &lt;p&gt;To complement the plot complete the corresponding table of groupwise statistics:&lt;/p&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th align=&quot;left&quot;&gt;&lt;/th&gt; &lt;th align=&quot;left&quot;&gt;median&lt;/th&gt; &lt;th align=&quot;left&quot;&gt;mean&lt;/th&gt; &lt;th align=&quot;left&quot;&gt;std. deviation&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;female&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-29059344f0a3471becbdb1ae50485c2a&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;aRsDAQkDFmk=&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-0d95e06ea79ea14226422702ae47b346&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;a0YKBlMIGF1SAg9UVwUHCgEAFm8=&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-5c44fb69a73ecdb4e694095fe9e388b1&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;bkEGAl9MBQFRBgNUW1BRDFAAG2k=&quot; /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;male&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-bf4413753845af83fcd24b8c6a3f2378&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;OUQABAEDFWg=&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-5427d30dd9832132ed77b8da1767386f&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;bhYGB1AAHlBdCgkGAgcLBlxXFWo=&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-6068321274490d862ffcac3a1b4ab839&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;bRIFDAUcCQMGAQEKAVwPDwVeRD4=&quot; /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;The average weight difference of &lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-482a57d487218c3e6677b35c28894ee0&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;bxoEVgEZUgEPAgEFClcFUAEDFWo=&quot; /&gt; is thus slightly &lt;select class=&quot;webex-select&quot; id=&quot;webex-53c4ef5a07e4fdc637c6868726481fec&quot; data-answer=&quot;bgNPBTg=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;lower&lt;/option&gt;&lt;option&gt;higher&lt;/option&gt;&lt;/select&gt; than the median weight difference of &lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-650216c948df307b4bb0e1b55779d188&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;bRcGAgEUPg==&quot; /&gt;.&lt;/p&gt; &lt;p&gt;Compute the full &lt;code&gt;summary()&lt;/code&gt; of weight by sex for this species and select the correct statements in the following list.&lt;/p&gt; &lt;div id=&quot;webex-e97c9d866f001432a9eeec09f303a4ee&quot; class=&quot;webex-checkboxgroup&quot; data-answer=&quot;PgkbUxVVZQ==&quot;&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;e97c9d866f001432a9eeec09f303a4ee&quot; /&gt;&lt;span&gt;The standard deviation of weight is lower for males compared to females.&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;e97c9d866f001432a9eeec09f303a4ee&quot; /&gt;&lt;span&gt;Less than half of the female penguins weigh more than 3175 grams.&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;e97c9d866f001432a9eeec09f303a4ee&quot; /&gt;&lt;span&gt;None of the penguins weighs less than 2850 grams.&lt;/span&gt;&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;One way to obtain the exploratory boxplots separately for the three species is:&lt;/p&gt; &lt;pre&gt;&lt;code&gt;par(mfrow = c(1, 3)) for(i in levels(penguins$species)) plot(body_mass ~ sex, data = penguins, subset = species == i, main = i, ylim = range(penguins$body_mass, na.rm = TRUE))&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;img src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABUYAAAHCCAMAAAAU8eOOAAADAFBMVEUAAAABAQECAgIDAwMEBAQFBQUGBgYHBwcICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8QEBARERESEhITExMUFBQVFRUWFhYXFxcYGBgZGRkaGhobGxscHBwdHR0eHh4fHx8gICAhISEiIiIjIyMkJCQlJSUmJiYnJycoKCgpKSkqKiorKyssLCwtLS0uLi4vLy8wMDAxMTEyMjIzMzM0NDQ1NTU2NjY3Nzc4ODg5OTk6Ojo7Ozs8PDw9PT0+Pj4/Pz9AQEBBQUFCQkJDQ0NERERFRUVGRkZHR0dISEhJSUlKSkpLS0tMTExNTU1OTk5PT09QUFBRUVFSUlJTU1NUVFRVVVVWVlZXV1dYWFhZWVlaWlpbW1tcXFxdXV1eXl5fX19gYGBhYWFiYmJjY2NkZGRl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/udqk/OtuW4ry+HjKu0igSlI8EiOVWjj1+r1DP/2P7Jue+qSnVc1Sdn23Lc15dDxlVaRYLSkWCRnKrRDYfdduehG7d/cn53/JMD9xs9q/+25bivL4eMq7SKBKUjwSK5U6ObH1Tqy9/84jP1yR+Vun+LmrFAvf7AgrcnfDB527JjZFylVSQoHQkWyZ0aBQCRqFEA0EKNAoAWahQAtFCjAKCFGgUALdQoAGihRgFACzUKAFqoUQDQQo0CgBZqFAC0UKMAoIUaBQAt1CgAaKFGAUALNQoAWqhRANBCjQKAlrTU6KfLMn8u/1elKn1HqYWr4r4e1BcJSpfgBNNRo2Vn9DjpPKXuPvC/Dl6y5vDP3m3n2mscIgAJSpfoBNNRo4sPrdx8d8XHbb9Rk89Q/9P7B7PjviDUEwlKl+gE01Gj6sJDrnpLTW/RtWuXC5TqPijuy0G9kaB0SU4wHTW65vM1U1p9vKCTUqWz1UffO2Rl3BeEeiJB6RKdYDpqdPahr77RenHlMeMX9nyusuuMRy6K+4JQTyQoXaITTEeNqglnXT1LqWXX9LpPvXqrqhy4OO4LQj2RoHRJTjAlNQoAplCjAKCFGgUALdQoAGihRgFACzUKAFqoUQDQQo0CgBZqFAC0UKMAoIUaBQAt1CgAaKFGAUALNQoAWqhRANBCjQKAFmoUALT8P2UB/Ao3OKWxAAAAAElFTkSuQmCC&quot; download=&quot;boxplots3-1.png&quot; /&gt;&lt;/p&gt; &lt;p&gt;The question shows the parallel boxplots for the Adelie species.&lt;/p&gt; &lt;p&gt;Groupwise statistics of body mass by sex and species (including mean, median, and standard deviation) can be obtained by aggregating the data with the combined &lt;code&gt;summary()&lt;/code&gt; and &lt;code&gt;sd()&lt;/code&gt; functions.&lt;/p&gt; &lt;pre&gt;&lt;code&gt;aggregate(body_mass ~ sex + species, data = penguins, FUN = function(x) c(summary(x), `Std. dev.` = sd(x)))&lt;/code&gt;&lt;/pre&gt; &lt;pre&gt;&lt;code&gt;## sex species body_mass.Min. body_mass.1st Qu. body_mass.Median ## 1 female Adelie 2850.0000 3175.0000 3400.0000 ## 2 male Adelie 3325.0000 3800.0000 4000.0000 ## 3 female Chinstrap 2700.0000 3362.5000 3550.0000 ## 4 male Chinstrap 3250.0000 3731.2500 3950.0000 ## 5 female Gentoo 3950.0000 4462.5000 4700.0000 ## 6 male Gentoo 4750.0000 5300.0000 5500.0000 ## body_mass.Mean body_mass.3rd Qu. body_mass.Max. body_mass.Std. dev. ## 1 3368.8356 3550.0000 3900.0000 269.3801 ## 2 4043.4932 4300.0000 4775.0000 346.8116 ## 3 3527.2059 3693.7500 4150.0000 285.3339 ## 4 3938.9706 4100.0000 4800.0000 362.1376 ## 5 4679.7414 4875.0000 5200.0000 281.5783 ## 6 5484.8361 5700.0000 6300.0000 313.1586&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Based on this the remaining elements of the question can be answered.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;The &lt;code&gt;penguins&lt;/code&gt; data in base R provides various measurements of adult penguins from three different species. See &lt;code&gt;?penguins&lt;/code&gt; for more details. Originally, the data was used to study sex dimorphism separately for the three species.&lt;/p&gt; &lt;p&gt;The first three rows of the data can be inspected as follows. Employ &lt;code&gt;summary()&lt;/code&gt; to obtain a first overview.&lt;/p&gt; &lt;pre&gt;&lt;code&gt;data(&amp;quot;penguins&amp;quot;, package = &amp;quot;datasets&amp;quot;) head(penguins, 3)&lt;/code&gt;&lt;/pre&gt; &lt;pre&gt;&lt;code&gt;## species island bill_len bill_dep flipper_len body_mass sex year ## 1 Adelie Torgersen 39.1 18.7 181 3750 male 2007 ## 2 Adelie Torgersen 39.5 17.4 186 3800 female 2007 ## 3 Adelie Torgersen 40.3 18.0 195 3250 female 2007&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Explore the sex differences with respect to body mass (weight, in grams) of the penguins. Create parallel boxplots of weight by sex, such as the one below, separately for the three species.&lt;/p&gt; &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h+jsx8fuaNx96y+/vV99Ijp66NFnw5e5r9OrxlhB7X/TN94T0mHB4eTWnuv05Z1CkyZfFXt8Vo8OHCA6QYhOEKIThOgEITpBiE4QohOE6AQhOkGIThCiE4ToBCE6QYhOEKIThOgEITpBiE4QohOE6AQhOkGIThCiE4ToBCE6QYhOEKIThOgEITpBiE4QojP2+t3BiZNLal6Krm+7UsbGx/8k+ri4QXS2RHpyxR+kl2peiu5E2HS2o/5G0cfFD6Kz7DvlDy/PueWl6BY23NNmrOjD4gjR2XRp7Nbr8m3NS9FV9AxNvCz6sDhCdFY6u50U9OC+mperY+zvUp7oo+IJ0V1Or0yNuVnzUnTFaUkh34k8Hs4Qnd3/tPxhqXSu5qXo/hh3Nr1Xhejj4gfRWW6D59bOTMyqeSm6nQFr2e6At0QfFz+Izm5MSmqYmHOu+qXobtw1VP6vEyNOij4wbhCdIEQnCNEJQnSCEJ0gRCcI0QlCdIIQnSBEJwjRCUJ0ghCdIEQnCNEJQnSCEJ0gRCcI0QlCdIIQnSBEJwjRCUJ0ghCdIEQn6P8BxUqPZQdah3UAAAAASUVORK5CYII=&quot; download=&quot;boxplots-1.png&quot; /&gt;&lt;/p&gt; &lt;p&gt;Which species does this plot pertain to? &lt;input class=&quot;webex-solveme&quot; id=&quot;webex-2fa01b94df8f66b40f8deaff6a4e9a18&quot; size=&quot;11&quot; data-answer=&quot;aUQiWFgMSkAWB0hEaw==&quot; /&gt;&lt;/p&gt; &lt;p&gt;To complement the plot complete the corresponding table of groupwise statistics:&lt;/p&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th align=&quot;left&quot;&gt;&lt;/th&gt; &lt;th align=&quot;left&quot;&gt;median&lt;/th&gt; &lt;th align=&quot;left&quot;&gt;mean&lt;/th&gt; &lt;th align=&quot;left&quot;&gt;std. deviation&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;female&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-78ac807eeb080de4ba7bb4614753b349&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;bBpSVg0AFTg=&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-1df605345a76044f2c042a8ecc2a0aed&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;akZVAwICHQYFVA8OAgcBVAtXEmk=&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-6ddbf0b347521ef7defa5474cef71ae7&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;bUZWWlMeUQAHDgQDBlReBFRSRDw=&quot; /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;male&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-b9e5acfa02390b00c47baffbd3ac7e42&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;ORtWDFRTRDw=&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-1cd6e6d0ce2b262e467af019f5e952c0&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;akFXD1YOSglUVQdaCgQBUAYPFTw=&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-4b1bab9c4b39c53c9c360350876f121a&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;b0ACVFNMCFADVwYJUwMLUgtSEWs=&quot; /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;The average weight difference of &lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-af40b4bbe97536a6f5b470845c88762f&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;OkQAAVMaVVRRDgcACw5TBVMGQGk=&quot; /&gt; is thus slightly &lt;select class=&quot;webex-select&quot; id=&quot;webex-b2cffee73d0ae4a87591d626286c5215&quot; data-answer=&quot;OQJPVzs=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;lower&lt;/option&gt;&lt;option&gt;higher&lt;/option&gt;&lt;/select&gt; than the median weight difference of &lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-2c185cd4d70c35b0b3bb21c1aacb3685&quot; data-tol=&quot;0.1&quot; size=&quot;11&quot; data-answer=&quot;aUEFCAVBOQ==&quot; /&gt;.&lt;/p&gt; &lt;p&gt;Compute the full &lt;code&gt;summary()&lt;/code&gt; of weight by sex for this species and select the correct statements in the following list.&lt;/p&gt; &lt;div id=&quot;webex-0463ff4fd037aac0c8e96d2f03239c47&quot; class=&quot;webex-checkboxgroup&quot; data-answer=&quot;awQaA0pXaQ==&quot;&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;0463ff4fd037aac0c8e96d2f03239c47&quot; /&gt;&lt;span&gt;The standard deviation of weight is lower for males compared to females.&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;0463ff4fd037aac0c8e96d2f03239c47&quot; /&gt;&lt;span&gt;Less than half of the female penguins weigh more than 3362.5 grams.&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;0463ff4fd037aac0c8e96d2f03239c47&quot; /&gt;&lt;span&gt;None of the penguins weighs less than 2700 grams.&lt;/span&gt;&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;One way to obtain the exploratory boxplots separately for the three species is:&lt;/p&gt; &lt;pre&gt;&lt;code&gt;par(mfrow = c(1, 3)) for(i in levels(penguins$species)) plot(body_mass ~ sex, data = penguins, subset = species == i, main = i, ylim = range(penguins$body_mass, na.rm = TRUE))&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;img src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABUYAAAHCCAMAAAAU8eOOAAADAFBMVEUAAAABAQECAgIDAwMEBAQFBQUGBgYHBwcICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8QEBARERESEhITExMUFBQVFRUWFhYXFxcYGBgZGRkaGhobGxscHBwdHR0eHh4fHx8gICAhISEiIiIjIyMkJCQlJSUmJiYnJycoKCgpKSkqKiorKyssLCwtLS0uLi4vLy8wMDAxMTEyMjIzMzM0NDQ1NTU2NjY3Nzc4ODg5OTk6Ojo7Ozs8PDw9PT0+Pj4/Pz9AQEBBQUFCQkJDQ0NERERFRUVGRkZHR0dISEhJSUlKSkpLS0tMTExNTU1OTk5PT09QUFBRUVFSUlJTU1NUVFRVVVVWVlZXV1dYWFhZWVlaWlpbW1tcXFxdXV1eXl5fX19gYGBhYWFiYmJjY2NkZGRlZWVmZmZnZ2doaGhpaWlqampra2tsbGxtbW1ubm5vb29wcHBxcXFycnJzc3N0dHR1dXV2dnZ3d3d4eHh5eXl6enp7e3t8fHx9fX1+fn5/f3+AgICBgYGCgoKDg4OEhISFhYWGhoaHh4eIiIiJiYmKioqLi4uMjIyNjY2Ojo6Pj4+QkJCRkZGSkpKTk5OUlJSVlZWWlpaXl5eYmJiZmZmampqbm5ucnJydnZ2enp6fn5+goKChoaGioqKjo6OkpKSlpaWmpqanp6eoqKipqamqqqqrq6usrKytra2urq6vr6+wsLCxsbGysrKzs7O0tLS1tbW2tra3t7e4uLi5ubm6urq7u7u8vLy9vb2+vr6/v7/AwMDBwcHCwsLDw8PExMTFxcXGxsbHx8fIyMjJyc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9Rk89Q/9P7B7PjviDUEwlKl+gE01Gj6sJDrnpLTW/RtWuXC5TqPijuy0G9kaB0SU4wHTW65vM1U1p9vKCTUqWz1UffO2Rl3BeEeiJB6RKdYDpqdPahr77RenHlMeMX9nyusuuMRy6K+4JQTyQoXaITTEeNqglnXT1LqWXX9LpPvXqrqhy4OO4LQj2RoHRJTjAlNQoAplCjAKCFGgUALdQoAGihRgFACzUKAFqoUQDQQo0CgBZqFAC0UKMAoIUaBQAt1CgAaKFGAUALNQoAWqhRANBCjQKAFmoUALT8P2UB/Ao3OKWxAAAAAElFTkSuQmCC&quot; download=&quot;boxplots3-1.png&quot; /&gt;&lt;/p&gt; &lt;p&gt;The question shows the parallel boxplots for the Chinstrap species.&lt;/p&gt; &lt;p&gt;Groupwise statistics of body mass by sex and species (including mean, median, and standard deviation) can be obtained by aggregating the data with the combined &lt;code&gt;summary()&lt;/code&gt; and &lt;code&gt;sd()&lt;/code&gt; functions.&lt;/p&gt; &lt;pre&gt;&lt;code&gt;aggregate(body_mass ~ sex + species, data = penguins, FUN = function(x) c(summary(x), `Std. dev.` = sd(x)))&lt;/code&gt;&lt;/pre&gt; &lt;pre&gt;&lt;code&gt;## sex species body_mass.Min. body_mass.1st Qu. body_mass.Median ## 1 female Adelie 2850.0000 3175.0000 3400.0000 ## 2 male Adelie 3325.0000 3800.0000 4000.0000 ## 3 female Chinstrap 2700.0000 3362.5000 3550.0000 ## 4 male Chinstrap 3250.0000 3731.2500 3950.0000 ## 5 female Gentoo 3950.0000 4462.5000 4700.0000 ## 6 male Gentoo 4750.0000 5300.0000 5500.0000 ## body_mass.Mean body_mass.3rd Qu. body_mass.Max. body_mass.Std. dev. ## 1 3368.8356 3550.0000 3900.0000 269.3801 ## 2 4043.4932 4300.0000 4775.0000 346.8116 ## 3 3527.2059 3693.7500 4150.0000 285.3339 ## 4 3938.9706 4100.0000 4800.0000 362.1376 ## 5 4679.7414 4875.0000 5200.0000 281.5783 ## 6 5484.8361 5700.0000 6300.0000 313.1586&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Based on this the remaining elements of the question can be answered.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t20 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;This cloze exercise randomly selects one (out of three) species of penguins from the eponymous data set in base R and then asks for a number of exploratory analyses investigating sex differences in body weight for the selected penguin species. The exercise template illustrates how such a data-based cloze including all types of items (numeric, string, single-choice, multiple-choice) can be created relatively easily using the add_cloze() function.&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Solution feedback:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;Yes&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Randomization:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;Shuffling (1 out of 3 species)&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Mathematical notation:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Verbatim R input/output:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;Yes&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Images:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;Yes&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Other supplements:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t20 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Template:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2026-01-07-penguins//penguins.Rmd&quot;&gt;penguins.Rmd&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2026-01-07-penguins//penguins.Rnw&quot;&gt;penguins.Rnw&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Raw:&lt;/b&gt; (1 random version)&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2026-01-07-penguins//penguins.md&quot;&gt;penguins.md&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2026-01-07-penguins//penguins.tex&quot;&gt;penguins.tex&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;PDF:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2026-01-07-penguins//penguins-Rmd.pdf&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2026-01-07-penguins//penguins-Rmd-pdf.png&quot; alt=&quot;penguins-Rmd-pdf&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2026-01-07-penguins//penguins-Rnw.pdf&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2026-01-07-penguins//penguins-Rnw-pdf.png&quot; alt=&quot;penguins-Rnw-pdf&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b20&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;HTML:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2026-01-07-penguins//penguins-Rmd.html&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2026-01-07-penguins//penguins-Rmd-html.png&quot; alt=&quot;penguins-Rmd-html&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2026-01-07-penguins//penguins-Rnw.html&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2026-01-07-penguins//penguins-Rnw-html.png&quot; alt=&quot;penguins-Rnw-html&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;p&gt;&lt;strong&gt;Demo code:&lt;/strong&gt;&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;library(&amp;quot;exams&amp;quot;) set.seed(403) exams2html(&amp;quot;penguins.Rmd&amp;quot;) set.seed(403) exams2pdf(&amp;quot;penguins.Rmd&amp;quot;) set.seed(403) exams2html(&amp;quot;penguins.Rnw&amp;quot;) set.seed(403) exams2pdf(&amp;quot;penguins.Rnw&amp;quot;)&lt;/code&gt;&lt;/pre&gt;</content>
			
				<category term="templates" />
			
			
				<category term="cloze" />
			
				<category term="statistics" />
			
				<category term="boxplot" />
			
			<published>2026-01-07T00:00:00+01:00</published>
		</entry>
	
    
    
		<entry>
			<id>https://www.R-exams.org/tutorials/nops_fix/</id>
			<title>Quality Control for Scanned Multiple-Choice Exams</title>
			<link href="https://www.R-exams.org/tutorials/nops_fix/" rel="alternate" type="text/html" title="Quality Control for Scanned Multiple-Choice Exams" />
			<updated>2025-09-15T00:00:00+02:00</updated>
			
				
				<author>
					
						<name>Achim Zeileis</name>
					
					
						<email>Achim.Zeileis@R-project.org</email>
					
					
						<uri>https://eeecon.uibk.ac.at/~zeileis/</uri>
					
				</author>
			
			<summary>Step-by-step guide to using nops_fix() for fixing problems that occurred during scanning written NOPS exams in R/exams.</summary>
			<content type="html" xml:base="https://www.R-exams.org/tutorials/nops_fix/">&lt;p&gt;Step-by-step guide to using nops_fix() for fixing problems that occurred during scanning written NOPS exams in R/exams.&lt;/p&gt; &lt;p&gt;&lt;img alt=&quot;Quality Control for Scanned Multiple-Choice Exams&quot; src=&quot;https://www.R-exams.org/images/nops_fix.title.png&quot; /&gt;&lt;/p&gt; &lt;h2 id=&quot;overview&quot;&gt;Overview&lt;/h2&gt; &lt;p&gt;The &lt;a href=&quot;https://www.R-exams.org&quot;&gt;R/exams&lt;/a&gt; package provides a workflow for generating (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2nops()&lt;/code&gt;), scanning (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan()&lt;/code&gt;), and automatically evaluating (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_eval()&lt;/code&gt;) large-scale pen-and-paper multiple-choice exams, see the corresponding &lt;a href=&quot;https://www.R-exams.org/tutorials/exams2nops/&quot;&gt;NOPS tutorial&lt;/a&gt; for more details.&lt;/p&gt; &lt;p&gt;Recently, another function &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt; was added to the package that helps to find and correct problems that occurred when reading the scanned exams and that might impede the automatic evaluation process. Typical problems include scans that are rotated or with corrupted scanner markers, answer boxes that are not correctly checked or filled, or missing checks in the boxes for the registration IDs, among others. Therefore, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt; helps the examiner to resolve such problems after &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan()&lt;/code&gt; and before &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_eval()&lt;/code&gt; to ensure accurate grading.&lt;/p&gt; &lt;p&gt;In this tutorial, we highlight the key features of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt;:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Automatic display of problematic sheets&lt;/li&gt; &lt;li&gt;Prompting for manual corrections&lt;/li&gt; &lt;li&gt;Specialized checks for implausible answer patterns&lt;/li&gt; &lt;li&gt;Manual review of specific exam sheets&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;These are illustrated by fixing the PDF scans from two demo exams: one with single-choice exercises (and only smaller problems) and one with multiple-choice exercises (and more severe problems). Some more detailed comments about all the features are provided at the very end of this tutorial.&lt;/p&gt; &lt;h2 id=&quot;demo-1-single-choice-exam-with-typical-problems&quot;&gt;Demo 1: Single-choice exam with typical problems&lt;/h2&gt; &lt;h3 id=&quot;create-exam&quot;&gt;Create exam&lt;/h3&gt; &lt;div class=&quot;row t20 b20&quot;&gt; &lt;div class=&quot;small-8 medium-9 columns&quot;&gt; &lt;p&gt;First, we generate five PDFs (in a new subdirectory &quot;nops&quot;) from a demo exam with five single-choice exercises (all provided in the package: &lt;a href=&quot;https://www.R-exams.org/templates/swisscapital/&quot;&gt;swisscapital&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/Rlogo/&quot;&gt;Rlogo&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/deriv2/&quot;&gt;deriv2&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/fruit2/&quot;&gt;fruit2&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/hessian/&quot;&gt;hessian&lt;/a&gt;).&lt;/p&gt;. &lt;/div&gt; &lt;div class=&quot;small-4 medium-3 columns&quot;&gt; &lt;img src=&quot;https://www.R-exams.org/images/written-create.svg&quot; alt=&quot;create&quot; /&gt; &lt;/div&gt; &lt;/div&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;library(&quot;exams&quot;) sc &amp;lt;- c(&quot;swisscapital.Rmd&quot;, &quot;Rlogo.Rmd&quot;, &quot;deriv2.Rmd&quot;, &quot;fruit2.Rmd&quot;, &quot;hessian.Rmd&quot;) set.seed(403) exams2nops(sc, n = 5, dir = &quot;nops&quot;, date = &quot;2024-10-07&quot;)&lt;/code&gt;&lt;/pre&gt; &lt;h3 id=&quot;conduct-exam-and-scan-results&quot;&gt;Conduct exam and scan results&lt;/h3&gt; &lt;div class=&quot;row t20&quot;&gt; &lt;div class=&quot;small-4 medium-6 columns&quot;&gt; &lt;p&gt;Suppose we conducted the exam with three participants and scanned their exam sheets (first page), rotated upside down (typically facilitating scanning because the top-left corner is damaged from the staples).&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;small-4 medium-3 columns&quot;&gt; &lt;img src=&quot;https://www.R-exams.org/images/written-exam.svg&quot; alt=&quot;exam&quot; /&gt; &lt;/div&gt; &lt;div class=&quot;small-4 medium-3 columns&quot;&gt; &lt;img src=&quot;https://www.R-exams.org/images/written-scan.svg&quot; alt=&quot;scan&quot; /&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Here, you can download the PDF file &lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//scans-schoice.pdf&quot;&gt;scans-schoice.pdf&lt;/a&gt;:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//scans-schoice.pdf&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix/scans-schoice.png&quot; alt=&quot;scans-schoice.pdf&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Then we can read the information from the scanned sheets via &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan()&lt;/code&gt;, resulting in a file &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan_*.zip&lt;/code&gt;. The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;*&lt;/code&gt; placeholder will correspond to the date/time where you run the code. The file contains the three scanned exam sheets converted to PNG along with a text file &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Daten.txt&lt;/code&gt; containing the information that R has extracted from the scanned sheets.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;nops_scan(&quot;scans-schoice.pdf&quot;, rotate = TRUE)&lt;/code&gt;&lt;/pre&gt; &lt;h3 id=&quot;fix-scan-results-and-final-evaluation&quot;&gt;Fix scan results and final evaluation&lt;/h3&gt; &lt;div class=&quot;row t20 b20&quot;&gt; &lt;div class=&quot;small-8 medium-9 columns&quot;&gt; &lt;p&gt;Subsequently, calling the function &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt; without any arguments automatically searches for files named &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan_*.zip&lt;/code&gt; and checks for any obvious errors, such as incorrectly entered registration IDs in the provided demo sheets.&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;small-4 medium-3 columns&quot;&gt; &lt;img src=&quot;https://www.R-exams.org/images/written-evaluate.svg&quot; alt=&quot;evaluate&quot; /&gt; &lt;/div&gt; &lt;/div&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;nops_fix()&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;When you run the code, R displays a section of the exam sheet and prompts you to manually enter the correct registration number. In this case, the program cannot read the number nine because the cross in the penultimate position has erroneously been entered in the last column.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//sc-registration.png&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix/sc-registration-thumb.png&quot; alt=&quot;sc-registration.png&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;After entering the registration number, the corrected data is saved in the updated zip file.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;## Correct registration number (for 0000000, S0000002.PNG): 0157193 ## adding: Daten.txt (deflated 89%) ## adding: S0000001.PNG (deflated 8%) ## adding: S0000002.PNG (deflated 6%) ## adding: S0000003.PNG (deflated 6%)&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Additionally, we can check whether in this &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;schoice&lt;/code&gt; exam there is exactly one checked box per question. Implausible answer patterns without checked boxes or with more than one checked box might be actual answers from the examinees but might also be due to scanning problems where checked or filled boxes are not detected correctly. If the scanned answer needs correction, you can either enter the correct answer as a letter (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;a&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;b&lt;/code&gt;, …), as a number (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;2&lt;/code&gt;, …), or in binary coding (e.g., &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;00010&lt;/code&gt;). To accept the scanned result, simply press &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;Enter&amp;gt;&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;First, we check and (if necessary) correct cases with more than one checked box:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;nops_fix(check = &quot;schoice&quot;)&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//sc-schoice1.png&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix/sc-schoice1-thumb.png&quot; alt=&quot;sc-schoice1.png&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//sc-schoice2.png&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix/sc-schoice2-thumb.png&quot; alt=&quot;sc-schoice2.png&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;## Correct answer 3 (for 01010, S0000003.PNG): d ## Correct answer 4 (for 01001, S0000003.PNG): ## adding: Daten.txt (deflated 89%) ## adding: S0000001.PNG (deflated 8%) ## adding: S0000002.PNG (deflated 6%) ## adding: S0000003.PNG (deflated 6%)&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Second, we check for cases with missing answers:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;nops_fix(check = &quot;missing&quot;)&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//sc-missing.png&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix/sc-missing-thumb.png&quot; alt=&quot;sc-missing.png&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;## Correct answer 2 (for 00000, S0000003.PNG): ## adding: Daten.txt (deflated 89%) ## adding: S0000001.PNG (deflated 8%) ## adding: S0000002.PNG (deflated 6%) ## adding: S0000003.PNG (deflated 6%)&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Finally, after resolving the problems above in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan_*.zip&lt;/code&gt; file, the single-choice exam can be evaluated. This additionally requires the correct solutions from the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2nops()&lt;/code&gt; metainformation (produced above) and a list with the registered participants (containing the registration number, name, and user ID). The latter can be downloaded as &lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//participants-schoice.csv&quot;&gt;participants-schoice.csv&lt;/a&gt;.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;ev &amp;lt;- nops_eval( register = &quot;participants-schoice.csv&quot;, solutions = &quot;nops/metainfo.rds&quot;, scans = Sys.glob(&quot;nops_scan_*.zip&quot;))&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;This produces the usual &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_eval.*&lt;/code&gt; output which are described in more detail in the &lt;a href=&quot;https://www.R-exams.org/tutorials/exams2nops/&quot;&gt;NOPS tutorial&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;To clean up before next demo you can use the following code:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;unlink(&quot;nops&quot;, recursive = TRUE) file.remove(Sys.glob(&quot;nops_eval.*&quot;)) file.remove(Sys.glob(&quot;nops_scan_*.zip&quot;))&lt;/code&gt;&lt;/pre&gt; &lt;h2 id=&quot;demo-2-multiple-choice-exam-with-severe-problems&quot;&gt;Demo 2: Multiple-choice exam with severe problems&lt;/h2&gt; &lt;h3 id=&quot;create-exam-1&quot;&gt;Create exam&lt;/h3&gt; &lt;div class=&quot;row t20 b20&quot;&gt; &lt;div class=&quot;small-8 medium-9 columns&quot;&gt; &lt;p&gt;Similar to the first demo, we first generate five PDFs in the subdirectory &quot;nops&quot; for a demo exam with six multiple-choice exercises provided in the package (&lt;a href=&quot;https://www.R-exams.org/templates/capitals/&quot;&gt;capitals&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/switzerland/&quot;&gt;switzerland&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/gaussmarkov/&quot;&gt;gaussmarkov&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/boxplots/&quot;&gt;boxplots&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/scatterplot/&quot;&gt;scatterplot&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/ttest/&quot;&gt;ttest&lt;/a&gt;).&lt;/p&gt;. &lt;/div&gt; &lt;div class=&quot;small-4 medium-3 columns&quot;&gt; &lt;img src=&quot;https://www.R-exams.org/images/written-create.svg&quot; alt=&quot;create&quot; /&gt; &lt;/div&gt; &lt;/div&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;library(&quot;exams&quot;) mc &amp;lt;- c(&quot;capitals.Rmd&quot;, &quot;switzerland.Rmd&quot;, &quot;gaussmarkov.Rmd&quot;, &quot;boxplots.Rmd&quot;, &quot;scatterplot.Rmd&quot;, &quot;ttest.Rmd&quot;) set.seed(404) exams2nops(mc, n = 5, dir = &quot;nops&quot;, date = &quot;2024-10-08&quot;)&lt;/code&gt;&lt;/pre&gt; &lt;h3 id=&quot;conduct-exam-and-scan-results-1&quot;&gt;Conduct exam and scan results&lt;/h3&gt; &lt;div class=&quot;row t20&quot;&gt; &lt;div class=&quot;small-4 medium-6 columns&quot;&gt; &lt;p&gt;Again, suppose we conducted the exam with three participants and scanned their exam sheets (first page), rotated upside down.&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;small-4 medium-3 columns&quot;&gt; &lt;img src=&quot;https://www.R-exams.org/images/written-exam.svg&quot; alt=&quot;exam&quot; /&gt; &lt;/div&gt; &lt;div class=&quot;small-4 medium-3 columns&quot;&gt; &lt;img src=&quot;https://www.R-exams.org/images/written-scan.svg&quot; alt=&quot;scan&quot; /&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Here, you can download the PDF file &lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//scans-mchoice.pdf&quot;&gt;scans-mchoice.pdf&lt;/a&gt;:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//scans-mchoice.pdf&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix/scans-mchoice.png&quot; alt=&quot;scans-mchoice.pdf&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Then we can read the information from the scanned sheets via &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan()&lt;/code&gt;, resulting in a file &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan_*.zip&lt;/code&gt;.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;nops_scan(&quot;scans-mchoice.pdf&quot;, rotate = TRUE)&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;In this case, this leads to a warning message that there are errors in the scanned data and that running &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt; is necessary prior to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_eval()&lt;/code&gt;.&lt;/p&gt; &lt;h3 id=&quot;fix-scan-results-and-final-evaluation-1&quot;&gt;Fix scan results and final evaluation&lt;/h3&gt; &lt;div class=&quot;row t20 b20&quot;&gt; &lt;div class=&quot;small-8 medium-9 columns&quot;&gt; &lt;p&gt;As above, calling the function &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt; without any arguments automatically searches for files named &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan_*.zip&lt;/code&gt; and checks for any obvious errors. Here, the third page is very heavily rotated and the scanner markers are all corrupted so that the PDF could not be read at all.&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;small-4 medium-3 columns&quot;&gt; &lt;img src=&quot;https://www.R-exams.org/images/written-evaluate.svg&quot; alt=&quot;evaluate&quot; /&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Due to the bad rotation and corrupted markers, it is is not possible for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt; to extract the individual fields reliably enough. Hence, it displays the entire scanned exam sheet in the browser, next to an interactive web form where all fields can be entered manually. As not even the “Type” field can be read, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt; does not know that there are only six exercises and hence it displays 45 exercises, the maximum possible.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;nops_fix()&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//mc-error.png&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix/mc-error-thumb.png&quot; alt=&quot;mc-error.png&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;After entering all fields, press the “OK” button in the browser (bottom right). This copies all the data entered into the clipboard (in a JSON string) and R will either attempt to read it from there or you can paste it into the R prompt. On Windows, reading from the clipboard should always work, while on other platforms the R package &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;clipr&lt;/code&gt; would need to be installed to read from the clipboard reliably. In any case, you should make sure that the clipboard is not modified before reading or pasting the clipboard again in R.&lt;/p&gt; &lt;p&gt;Instead of using the interactive form in the browser, you can also use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix(display = &quot;browser&quot;)&lt;/code&gt; which only display the scanned sheet in the browser and then all fields can be entered individually in the R prompt (as in the previous examples).&lt;/p&gt; &lt;p&gt;Subsequently, we can run the additional precautionary checks of answer fields where all or none of the boxes were checked, respectively. In these three exams, we have none of these problems, though.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;nops_fix(check = &quot;mchoice&quot;) nops_fix(check = &quot;missing&quot;)&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;To demonstrate another nifty feature of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt;, let us assume that we know that answer fields on the second scan should be inspected more thoroughly.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;nops_fix(exam = 2, field = &quot;answer&quot;)&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;This iterates through all six answer fields, in this case turning up a number of ambiguities which need to be resolved by the examiner.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//mc-exam2-answer.gif&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//mc-exam2-answer.gif&quot; alt=&quot;mc-exam2-answer.gif&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;## Correct answer 1 (for 00001, S0000002.PNG): ## Correct answer 2 (for 10000, S0000002.PNG): ## Correct answer 3 (for 01100, S0000002.PNG): ## Correct answer 4 (for 01110, S0000002.PNG): ## Correct answer 5 (for 10000, S0000002.PNG): 1 ## Correct answer 6 (for 11010, S0000002.PNG): bd ## adding: Daten.txt (deflated 88%) ## adding: S0000001.PNG (deflated 8%) ## adding: S0000002.PNG (deflated 5%) ## adding: S0000003.PNG (deflated 6%)&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Then, the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan_*.zip&lt;/code&gt; file is ready for the final evaluation and you just need to download the participant list &lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-15-nops_fix//participants-mchoice.csv&quot;&gt;participants-mchoice.csv&lt;/a&gt; before running &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_eval()&lt;/code&gt;.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;ev &amp;lt;- nops_eval( register = &quot;participants-mchoice.csv&quot;, solutions = &quot;nops/metainfo.rds&quot;, scans = Sys.glob(&quot;nops_scan_*.zip&quot;))&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;To clean up the working folder after the demos, use:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;unlink(&quot;nops&quot;, recursive = TRUE) file.remove(Sys.glob(&quot;nops_eval.*&quot;)) file.remove(Sys.glob(&quot;nops_scan_*.zip&quot;))&lt;/code&gt;&lt;/pre&gt; &lt;h2 id=&quot;details&quot;&gt;Details&lt;/h2&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Automatic display of problematic sheets&lt;/strong&gt; &lt;ul&gt; &lt;li&gt;If certain sheets are poorly scanned (e.g., misaligned or badly scaled) or if the boxes for the registration ID are not correctly checked (exactly one checked box per column), &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan()&lt;/code&gt; flags these sheets as erroneous and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt; presents them automatically for manual inspection.&lt;/li&gt; &lt;li&gt;The function displays either the entire exam sheet in the browser or the section in need of attention in an R plot and prompts the user for input on the console, allowing for step-by-step inspection and correction.&lt;/li&gt; &lt;li&gt;The most suitable &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;display&lt;/code&gt; is chosen automatically or can be set to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;plot&quot;&lt;/code&gt; (display scanned excerpt in R plot), &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;browser&quot;&lt;/code&gt; (display full scanned image in browser), or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;interactive&quot;&lt;/code&gt; (display full scanned image along with interactive HTML form in browser). The default is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;plot&quot;&lt;/code&gt; unless errors occurred during scanning where &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;interactive&quot;&lt;/code&gt; is used instead.&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;strong&gt;Prompting for manual corrections&lt;/strong&gt; &lt;ul&gt; &lt;li&gt;For each &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;field&lt;/code&gt; in the exam sheet (either &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;type&quot;&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;id&quot;&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;registration&quot;&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;answers&quot;&lt;/code&gt;), &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt; displays the detected content and prompts the user for potential updates.&lt;/li&gt; &lt;li&gt;Just pressing Enter accepts the detected content without changes.&lt;/li&gt; &lt;li&gt;When checking a certain answer field, the detected answer is represented by a five-digit binary code (even if the question had fewer than five answer alternatives) such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;01001&lt;/code&gt; (when the second and the fifth box was checked). To correct this, say to the second box only, the following formats are supported: binary (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;01000&lt;/code&gt;), letters (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;b&lt;/code&gt;), or numeric (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;2&lt;/code&gt;).&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;strong&gt;Specialized checks for implausible answer patterns&lt;/strong&gt; &lt;ul&gt; &lt;li&gt;To support examiners in finding &lt;em&gt;potential&lt;/em&gt; problems in the exam sheets before examinees complain, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt; offers checks for various implausible answer patterns.&lt;/li&gt; &lt;li&gt;Often such implausible patterns are errors on behalf of the examinees (and then just have to be preserved) but when the errors are due to incorrectly detecting the checked boxes in the scanned sheet, the answers can be corrected.&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix(check = &quot;missing&quot;)&lt;/code&gt; checks answers without any checked boxes which are implausible unless there are negative points for incorrect answers.&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix(check = &quot;schoice&quot;)&lt;/code&gt; checks answers with more than one checked box which are often caused by not fully filling an erroneously checked box.&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix(check = &quot;mchoice&quot;)&lt;/code&gt; checks answers with all boxes checked which are implausible because such patterns are typically graded with zero points.&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;strong&gt;Manual review of specific exam sheets&lt;/strong&gt; &lt;ul&gt; &lt;li&gt;Sometimes specific exam sheets require more attention, e.g., when special conditions applied in the exam or when the sheet was not filled out correctly.&lt;/li&gt; &lt;li&gt;Say if this applies to the first scanned sheet, then &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix(exam = 1)&lt;/code&gt; can be employed to check each field of the sheet.&lt;/li&gt; &lt;li&gt;Such review ensures that every answer is scrutinized, which is especially helpful in high-stakes or verification-required settings.&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ol&gt; &lt;p&gt;The full details for all arguments are documented on the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;?nops_fix&lt;/code&gt; manual page which also includes more typical application examples.&lt;/p&gt;</content>
			
				<category term="tutorials" />
			
			
				<category term="exams2nops" />
			
				<category term="written" />
			
				<category term="mchoice" />
			
				<category term="schoice" />
			
				<category term="PDF" />
			
				<category term="scan" />
			
				<category term="evaluation" />
			
				<category term="R" />
			
			<published>2025-09-15T00:00:00+02:00</published>
		</entry>
	
    
    
		<entry>
			<id>https://www.R-exams.org/tutorials/vvcanvas/</id>
			<title>Creating and Managing Canvas Quizzes with R/exams and vvcanvas</title>
			<link href="https://www.R-exams.org/tutorials/vvcanvas/" rel="alternate" type="text/html" title="Creating and Managing Canvas Quizzes with R/exams and vvcanvas" />
			<updated>2025-09-08T00:00:00+02:00</updated>
			
				
				<author>
					
						<name>Niels Smits</name>
					
					
						<email>n.smits@uva.nl</email>
					
					
						<uri>http://www.uva.nl/en/profile/s/m/n.smits/n.smits.html</uri>
					
				</author>
			
			<summary>Canvas quizzes can be created with exams2canvas in R/exams and then imported and managed in Canvas using the R package vvcanvas.</summary>
			<content type="html" xml:base="https://www.R-exams.org/tutorials/vvcanvas/">&lt;p&gt;Canvas quizzes can be created with exams2canvas in R/exams and then imported and managed in Canvas using the R package vvcanvas.&lt;/p&gt; &lt;p&gt;&lt;img alt=&quot;Creating and Managing Canvas Quizzes with R/exams and vvcanvas&quot; src=&quot;https://www.R-exams.org/images/vvcanvas.title.png&quot; /&gt;&lt;/p&gt; &lt;h2 id=&quot;overview&quot;&gt;Overview&lt;/h2&gt; &lt;p&gt;This tutorial illustrates how to use &lt;a href=&quot;https://www.R-exams.org&quot;&gt;R/exams&lt;/a&gt; in combination with &lt;a href=&quot;https://vusaverse.github.io/vvcanvas/&quot;&gt;vvcanvas&lt;/a&gt; for creating and managing quizzes for &lt;a href=&quot;https://instructure.com/&quot;&gt;Canvas&lt;/a&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2canvas()&lt;/code&gt; has long been available in R/exams and allows to create QTI zip files that can be imported into the learning management system Canvas (owned by US-based educational technology company Instructure). Until now the import of quizzes had to be done manually using the &lt;a href=&quot;https://community.canvaslms.com/t5/Instructor-Guide/How-do-I-import-quizzes-from-QTI-packages/ta-p/1046&quot;&gt;Import Course Content link&lt;/a&gt; in a Canvas course’s Settings menu. Also, quiz options, such as due dates and time restrictions, needed to be set manually in the quiz’s &lt;a href=&quot;https://community.canvaslms.com/t5/Instructor-Guide/What-options-can-I-set-in-a-quiz/ta-p/683&quot;&gt;settings&lt;/a&gt;, which is rather time-consuming, especially if the number of quizzes is large. The R package &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vvcanvas&lt;/code&gt; provides a convenient interface to interact with the Canvas API. It allows users to authenticate, retrieve course information, fetch specific details, and perform various operations within the Canvas LMS, such as uploading QTI files and setting quiz options.&lt;/p&gt; &lt;p&gt;Here, two things are illustrated:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Steps required using R/exams to create a quiz in Canvas format.&lt;/li&gt; &lt;li&gt;Steps required using the vvcanvas package to (a) authenticate with the Canvas LMS API, (b) import the quiz into the Canvas system and (c) set quiz options.&lt;/li&gt; &lt;/ol&gt; &lt;h2 id=&quot;steps-using-rexams&quot;&gt;Steps using R/exams&lt;/h2&gt; &lt;p&gt;The code below first loads the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams&lt;/code&gt; package (see the &lt;a href=&quot;https://www.R-exams.org/tutorials/installation/&quot;&gt;Installing R/exams&lt;/a&gt; tutorial for instructions how to set it up for the first time).&lt;/p&gt; &lt;p&gt;Then, we create an exam called &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;NewCanvasQuiz&lt;/code&gt; which is a list of exercises, in this case all provided as part of the R/exams package: &lt;a href=&quot;https://www.R-exams.org/templates/tstat/&quot;&gt;tstat&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/tstat2/&quot;&gt;tstat2&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/relfreq/&quot;&gt;relfreq&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/function/&quot;&gt;function&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/vowels/&quot;&gt;vowels&lt;/a&gt;. It consists of, respectively, a &lt;em&gt;num&lt;/em&gt;, &lt;em&gt;schoice&lt;/em&gt;, &lt;em&gt;mchoice&lt;/em&gt;, &lt;em&gt;string&lt;/em&gt;, and &lt;em&gt;cloze&lt;/em&gt; exercise. note that there is only limited support for cloze exercises, for now sets of &lt;em&gt;schoice&lt;/em&gt; items are allowed, resulting in multiple dropdown menus; the possibility of sets of &lt;em&gt;num&lt;/em&gt; items is currently considered.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;library(&quot;exams&quot;) NewCanvasQuiz &amp;lt;- list( &quot;tstat.Rmd&quot;, &quot;tstat2.Rmd&quot;, &quot;relfreq.Rmd&quot;, &quot;function.Rmd&quot;, &quot;vowels.Rmd&quot; ) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;A quick preview in the web browser can be created using &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2html()&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2webquiz()&lt;/code&gt; from &lt;a href=&quot;https://www.R-exams.org/tutorials/exams2forms/&quot;&gt;exams2forms&lt;/a&gt;:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;exams2html(NewCanvasQuiz) library(&quot;exams2forms&quot;) exams2webquiz(NewCanvasQuiz) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;To actually create an exam for use in Canvas the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2canvas()&lt;/code&gt; function can be used which generates a zip file (here: &lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-08-vvcanvas/NewCanvasQuiz.zip&quot;&gt;NewCanvasQuiz.zip&lt;/a&gt;), containing a collection of XML files with the exercises in Canvas format.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;exams2canvas(NewCanvasQuiz, name = &quot;NewCanvasQuiz&quot;) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;If multiple quizzes are uploaded within a course it is advised to _not_ reuse file names as the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vvcanvas&lt;/code&gt; functions use file names as part of the identification of imported quizzes.&lt;/p&gt; &lt;h2 id=&quot;steps-in-canvas&quot;&gt;Steps in Canvas&lt;/h2&gt; &lt;p&gt;In order to communicate with Canvas from R a ‘token’, a kind of password, is required. To obtain a token, the instructions on &lt;a href=&quot;https://community.canvaslms.com/t5/Canvas-Basics-Guide/How-do-I-manage-API-access-tokens-in-my-user-account/ta-p/615312&quot;&gt;Instructure’s community portal&lt;/a&gt; may be followed. For completeness, the (currently required) steps are provided below:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Go to your account (icon at the top of the left menu).&lt;/li&gt; &lt;li&gt;Go to Profile &amp;gt; Settings.&lt;/li&gt; &lt;li&gt;Find “Approved integrations” halfway down the page.&lt;/li&gt; &lt;li&gt;Click on “+ New access token” (red button).&lt;/li&gt; &lt;li&gt;Copy or save it.&lt;/li&gt; &lt;/ul&gt; &lt;h2 id=&quot;steps-using-vvcanvas&quot;&gt;Steps using vvcanvas&lt;/h2&gt; &lt;h3 id=&quot;load-the-package-and-authenticate&quot;&gt;Load the package and authenticate&lt;/h3&gt; &lt;p&gt;First, the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vvcanvas&lt;/code&gt; package may be installed from CRAN using the following command:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;install.packages(&quot;vvcanvas&quot;) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;The most up-to-date description of authentication steps can be found on the &lt;a href=&quot;https://vusaverse.github.io/vvcanvas/articles/getting_started.html#authentication&quot;&gt;vvcanvas Github page&lt;/a&gt;. Here, after loading the package, we set up variables for the Canvas token and the Canvas URL, using ‘MY_API_KEY’ and the Canvas page of the University of Amsterdam as placeholders. Please replace these with your actual token and URL. Then, the authentication can be carried out using &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;canvas_authenticate()&lt;/code&gt;.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;library(&quot;vvcanvas&quot;) my_token &amp;lt;- &quot;MY_API_KEY&quot; my_url &amp;lt;- &quot;https://canvas.uva.nl&quot; my_canvas &amp;lt;- canvas_authenticate(api_key = my_token, base_url = my_url) &lt;/code&gt;&lt;/pre&gt; &lt;h3 id=&quot;specify-the-course-and-look-into-the-available-quizzes&quot;&gt;Specify the course and look into the available quizzes&lt;/h3&gt; &lt;p&gt;Set the ID of the course in which the upload must take place and retrieve the list of quizzes that were already available before uploading the new QTI file:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;my_course &amp;lt;- 7520 get_course_quizzes(canvas = my_canvas, course_id = my_course) &lt;/code&gt;&lt;/pre&gt; &lt;h3 id=&quot;upload-the-quiz-and-obtain-its-id&quot;&gt;Upload the quiz and obtain its ID&lt;/h3&gt; &lt;p&gt;The time that Canvas requires to process the uploaded QTI file is hard to predict. It depends on the traffic on the Canvas server, and possibly the number of migrations the user has recently performed. Therefore, in circumstances with much waiting time a different approach is advised than when waiting time is short. In the latter case the ID of the quiz is easily obtained, and in the former case the ID needs to be determined using a more extensive approach requiring two additional steps.&lt;/p&gt; &lt;p&gt;If processing takes little time (e.g., 5 to 10 seconds), one can obtain the ID of the quiz directly using the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;upload_qti_file_with_migration&lt;/code&gt; function setting &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;wait = TRUE&lt;/code&gt;, by which the function waits 30 seconds after uploading the QTI file to check if it has already been converted into a new quiz. If a new quiz has been created it returns the ID of the quiz; if not it asks the user if further waiting is required.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;my_quiz &amp;lt;- upload_qti_file_with_migration(canvas = my_canvas, course_id = my_course, qti_name = &quot;NewCanvasQuiz&quot;, wait = TRUE) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;If waiting takes too much time, or when waiting is undesirable all the same, users are advised to use the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;get_course_quizzes&lt;/code&gt; function to see if a new quiz has been created. In that case, experience shows it may be wise to wait a couple of hours before running the remaining code (because the Canvas API may have assigned low priority to the processing of the QTI file).&lt;/p&gt; &lt;h3 id=&quot;update-quiz-parameters&quot;&gt;Update quiz parameters&lt;/h3&gt; &lt;p&gt;Once the ID of the quiz has been established (saved in object ‘my_quiz’ in the example), the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;update_quiz&lt;/code&gt; function can be used to modify the parameters of the newly created quiz:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;my_params &amp;lt;- list( title = &quot;Updated Quiz Title&quot;, description = &quot;Updated description of the quiz.&quot;, due_at = &quot;2025-09-21T23:59:00+01:00&quot;, time_limit = 120, published = TRUE ) updated_quiz &amp;lt;- update_quiz(canvas = my_canvas, course_id = my_course, quiz_id = my_quiz, quiz_params = my_params) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Five parameters were set, the title of the quiz, its description, its due date, its time limit (120 minutes), and its status (‘published’). Note that Canvas demands dates in &lt;a href=&quot;https://en.wikipedia.org/wiki/ISO_8601&quot;&gt;ISO 8601&lt;/a&gt; format. For completeness, the structure of the updated quiz object is presented below:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;str(updated_quiz) &lt;/code&gt;&lt;/pre&gt; &lt;pre&gt;&lt;code&gt;## List of 56 ## $ id : int 119836 ## $ title : chr &quot;Updated Quiz Title&quot; ## $ html_url : chr &quot;https://canvas.uva.nl/courses/7520/quizzes/119836&quot; ## $ mobile_url : chr &quot;https://canvas.uva.nl/courses/7520/quizzes/119836?force_user=1&amp;amp;persist_headless=1&quot; ## $ description : chr &quot;Updated description of the quiz.&quot; ## $ quiz_type : chr &quot;assignment&quot; ## $ time_limit : int 120 ## $ timer_autosubmit_disabled : logi FALSE ## $ shuffle_answers : logi TRUE ## $ show_correct_answers : logi TRUE ## $ scoring_policy : chr &quot;keep_highest&quot; ## $ allowed_attempts : int 1 ## $ one_question_at_a_time : logi FALSE ## $ question_count : int 5 ## $ points_possible : num 5 ## $ cant_go_back : logi FALSE ## $ access_code : NULL ## $ ip_filter : NULL ## $ due_at : chr &quot;2025-09-21T22:59:00Z&quot; ## $ lock_at : NULL ## $ unlock_at : NULL ## $ published : logi TRUE ## $ unpublishable : logi TRUE ## $ locked_for_user : logi TRUE ## $ lock_info :List of 2 ## ..$ missing_permission: chr &quot;participate_as_student&quot; ## ..$ asset_string : chr &quot;quizzes:quiz_119836&quot; ## $ lock_explanation : chr &quot;This quiz is currently locked.&quot; ## $ hide_results : NULL ## $ show_correct_answers_at : NULL ## $ hide_correct_answers_at : NULL ## $ all_dates :List of 1 ## ..$ :List of 4 ## .. ..$ due_at : chr &quot;2025-09-21T06:59:00Z&quot; ## .. ..$ unlock_at: NULL ## .. ..$ lock_at : NULL ## .. ..$ base : logi TRUE ## $ can_unpublish : logi TRUE ## $ can_update : logi TRUE ## $ require_lockdown_browser : logi FALSE ## $ require_lockdown_browser_for_results: logi FALSE ## $ require_lockdown_browser_monitor : logi FALSE ## $ lockdown_browser_monitor_data : NULL ## $ speed_grader_url : chr &quot;https://canvas.uva.nl/courses/7520/gradebook/speed_grader?assignment_id=618723&quot; ## $ permissions :List of 12 ## ..$ read : logi TRUE ## ..$ create : logi TRUE ## ..$ manage : logi TRUE ## ..$ update : logi TRUE ## ..$ submit : logi TRUE ## ..$ preview : logi TRUE ## ..$ delete : logi TRUE ## ..$ read_statistics : logi TRUE ## ..$ grade : logi TRUE ## ..$ review_grades : logi TRUE ## ..$ view_answer_audits: logi FALSE ## ..$ manage_assign_to : logi TRUE ## $ quiz_reports_url : chr &quot;https://canvas.uva.nl/api/v1/courses/7520/quizzes/119836/reports&quot; ## $ quiz_statistics_url : chr &quot;https://canvas.uva.nl/api/v1/courses/7520/quizzes/119836/statistics&quot; ## $ message_students_url : chr &quot;https://canvas.uva.nl/api/v1/courses/7520/quizzes/119836/submission_users/message&quot; ## $ section_count : int 1 ## $ important_dates : logi FALSE ## $ quiz_submission_versions_html_url : chr &quot;https://canvas.uva.nl/courses/7520/quizzes/119836/submission_versions&quot; ## $ assignment_id : int 618723 ## $ one_time_results : logi FALSE ## $ only_visible_to_overrides : logi FALSE ## $ visible_to_everyone : logi TRUE ## $ assignment_group_id : int 11855 ## $ show_correct_answers_last_attempt : logi FALSE ## $ version_number : int 4 ## $ has_access_code : logi FALSE ## $ post_to_sis : logi FALSE ## $ migration_id : chr &quot;NewCanvasQuiz_136488631&quot; ## $ in_paced_course : logi FALSE ## $ question_types :List of 5 ## ..$ : chr &quot;numerical_question&quot; ## ..$ : chr &quot;multiple_choice_question&quot; ## ..$ : chr &quot;multiple_answers_question&quot; ## ..$ : chr &quot;short_answer_question&quot; ## ..$ : chr &quot;multiple_dropdowns_question&quot; &lt;/code&gt;&lt;/pre&gt;</content>
			
				<category term="tutorials" />
			
			
				<category term="e-learning" />
			
				<category term="quiz" />
			
				<category term="num" />
			
				<category term="mchoice" />
			
				<category term="schoice" />
			
				<category term="string" />
			
				<category term="cloze" />
			
				<category term="R" />
			
			<published>2025-09-08T00:00:00+02:00</published>
		</entry>
	
    
    
		<entry>
			<id>https://www.R-exams.org/general/fun_with_flags/</id>
			<title>R/exams Presents: Fun with Flags</title>
			<link href="https://www.R-exams.org/general/fun_with_flags/" rel="alternate" type="text/html" title="R/exams Presents: Fun with Flags" />
			<updated>2025-09-02T00:00:00+02:00</updated>
			
				
				<author>
					
						<name>Achim Zeileis</name>
					
					
						<email>Achim.Zeileis@R-project.org</email>
					
					
						<uri>https://eeecon.uibk.ac.at/~zeileis/</uri>
					
				</author>
			
			<summary>A knowledge quiz about the flags of countries and their neighbors illustrates how R/exams and Quarto can be leveraged for standalone self-learning materials (and pays tribute to Sheldon Cooper).</summary>
			<content type="html" xml:base="https://www.R-exams.org/general/fun_with_flags/">&lt;p&gt;A knowledge quiz about the flags of countries and their neighbors illustrates how R/exams and Quarto can be leveraged for standalone self-learning materials (and pays tribute to Sheldon Cooper).&lt;/p&gt; &lt;p&gt;&lt;img alt=&quot;R/exams Presents: Fun with Flags&quot; src=&quot;https://www.R-exams.org/images/fun_with_flags.title.png&quot; /&gt;&lt;/p&gt; &lt;h2 id=&quot;overview&quot;&gt;Overview&lt;/h2&gt; &lt;p&gt;The recently introduced &lt;a href=&quot;https://www.R-exams.org/tutorials/exams2forms/&quot;&gt;exams2forms&lt;/a&gt; package extends &lt;a href=&quot;https://www.R-exams.org&quot;&gt;R/exams&lt;/a&gt; so that its &lt;a href=&quot;https://www.R-exams.org/intro/dynamic/&quot;&gt;dynamic exercises&lt;/a&gt; can be embedded in R/Markdown or Quarto documents, web pages, online books, etc. One potential application scenario for this is the creation of standalone HTML documents including self-learning materials, e.g., for providing &lt;a href=&quot;https://en.wikipedia.org/wiki/Open_educational_resources&quot;&gt;open educational resources (OER)&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Here, this is illustrated by a knowledge quiz that pays tribute to the web series &lt;a href=&quot;https://the-big-bang-theory.com/fun_with_flags/&quot;&gt;Sheldon Cooper presents: Fun with Flags&lt;/a&gt;, a spin-off from the popular sitcom “The Big Bang Theory”.&lt;/p&gt; &lt;h2 id=&quot;knowledge-quiz&quot;&gt;Knowledge quiz&lt;/h2&gt; &lt;p&gt;The quiz is provided in the standalone file &lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-02-fun_with_flags/flags.html&quot; target=&quot;_blank&quot;&gt;flags.html&lt;/a&gt; and it contains two tasks:&lt;/p&gt; &lt;ul&gt; &lt;li&gt; &lt;p&gt;&lt;em&gt;Guess the flag:&lt;/em&gt; The correct flag for a country has to be selected from a list of flags. The underlying exercise is provided in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams&lt;/code&gt; package as &lt;a href=&quot;https://www.R-exams.org/templates/flags/&quot;&gt;flags&lt;/a&gt;.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;&lt;em&gt;Find the neighbors:&lt;/em&gt; The flags of neighboring countries (for a country only identified by its flag) have to be selected from a multiple-choice list. The underlying exercise is provided in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; package as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;geography.Rmd&lt;/code&gt;.&lt;/p&gt; &lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Click on the screenshot below to try the quiz yourself. &lt;em&gt;(Note that you can also download the HTML file and play the quiz offline.)&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-02-fun_with_flags/flags.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-09-02-fun_with_flags/flags.png&quot; alt=&quot;Screenshot of the standalone Fun with Flags quiz page&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;h2 id=&quot;resources&quot;&gt;Resources&lt;/h2&gt; &lt;p&gt;To recreate the quiz file, the following resources are necessary. First, the exercise files for the two tasks are needed but, as pointed out above, these are shipped with the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; package, respectively. Second, the following files are needed to create a standalone HTML file containing 100 random variations from each of the exercises.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-02-fun_with_flags/flags.qmd&quot;&gt;flags.qmd&lt;/a&gt;: Quarto source file embedding the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms()&lt;/code&gt; calls, see below.&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-02-fun_with_flags/webex.js&quot;&gt;webex.js&lt;/a&gt;: Copy of the current Javascript code from the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; package (version 0.2-0).&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-02-fun_with_flags/webex.css&quot;&gt;webex.css&lt;/a&gt;: Copy of the current style sheets from the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; package (version 0.2-0) with the highlight color changed to the R/exams primary color.&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-02-fun_with_flags/cosmo.scss&quot;&gt;cosmo.scss&lt;/a&gt;: Style sheets for customizing the cosmo theme to the R/exams primary color and button-style tabsets.&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-02-fun_with_flags/fun_with_flags.png&quot;&gt;fun_with_flags.png&lt;/a&gt;: Title image taken from &lt;a href=&quot;https://speakerdeck.com/mheap/dr-sheldon-cooper-presents-fun-with-flags-1&quot;&gt;Michael Heap’s Fun with Flags presentation&lt;/a&gt;.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;If these files are placed in the same folder, the Quarto source file &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;flags.qmd&lt;/code&gt; can be rendered and then produces &lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-09-02-fun_with_flags/flags.html&quot; target=&quot;_blank&quot;&gt;flags.html&lt;/a&gt;. When doing so in RStudio you can simply open the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;flags.qmd&lt;/code&gt; file and click on the rendering button. Alternatively, on the command line you can use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;quarto render flags.qmd&lt;/code&gt;.&lt;/p&gt; &lt;h2 id=&quot;quarto-source-file&quot;&gt;Quarto source file&lt;/h2&gt; &lt;p&gt;The complete Quarto source file &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;flags.qmd&lt;/code&gt; is also shown below. It contains the following parts:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;The YAML header (separated by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;---&lt;/code&gt;) sets the title using the logo image, loads all style files and scripts, and specifies that all resources should be embedded in order to make the resulting HTML file self-contained.&lt;/li&gt; &lt;li&gt;The first R code chunk loads the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; package (which also loads the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams&lt;/code&gt; package) and sets a random seed for reproducibility.&lt;/li&gt; &lt;li&gt;Subsequently, a panel tabset with two sections is defined, each containing an R code calling &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms()&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;For the first task 100 random variations can be set up easily because &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;flags.Rmd&lt;/code&gt; is found in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams&lt;/code&gt; package.&lt;/li&gt; &lt;li&gt;For the second task we need to set up the path to the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;geography.Rmd&lt;/code&gt; file in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; package, then its the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;display&lt;/code&gt; variable is fixed to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;flag&quot;&lt;/code&gt;, and finally 100 random variations are created.&lt;/li&gt; &lt;/ul&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;--- title: &quot;![Fun with Flags](fun_with_flags.png){width=330px}&quot; format: html: theme: - cosmo - cosmo.scss toc: false css: webex.css include-after-body: webex.js embed-resources: true --- ```{r setup, include = FALSE} library(&quot;exams2forms&quot;) set.seed(0) ``` ::: {.panel-tabset} ## Guess the flag ```{r flags, echo = FALSE, message = FALSE, results = &quot;asis&quot;} exams2forms(&quot;flags.Rmd&quot;, n = 100) ``` ## Find the neighbors ```{r geography, echo = FALSE, message = FALSE, results = &quot;asis&quot;} geography &amp;lt;- system.file(&quot;exercises&quot;, &quot;geography.Rmd&quot;, package = &quot;exams2forms&quot;) |&amp;gt; expar(display = &quot;flag&quot;) exams2forms(geography, n = 100) ``` ::: &lt;/code&gt;&lt;/pre&gt;</content>
			
				<category term="general" />
			
			
				<category term="R" />
			
				<category term="exams" />
			
				<category term="exams2forms" />
			
				<category term="flags" />
			
			<published>2025-09-02T00:00:00+02:00</published>
		</entry>
	
    
    
		<entry>
			<id>https://www.R-exams.org/general/cran_release_242/</id>
			<title>New R/exams Version: exams2forms, Written NOPS Exams, and More</title>
			<link href="https://www.R-exams.org/general/cran_release_242/" rel="alternate" type="text/html" title="New R/exams Version: exams2forms, Written NOPS Exams, and More" />
			<updated>2025-05-05T00:00:00+02:00</updated>
			
				
				<author>
					
						<name>Achim Zeileis</name>
					
					
						<email>Achim.Zeileis@R-project.org</email>
					
					
						<uri>https://eeecon.uibk.ac.at/~zeileis/</uri>
					
				</author>
			
			<summary>New CRAN releases of the R/exams package and the accompanying exams2forms package with many new features and enhancements, especially for the written multiple-choice exams (NOPS).</summary>
			<content type="html" xml:base="https://www.R-exams.org/general/cran_release_242/">&lt;p&gt;New CRAN releases of the R/exams package and the accompanying exams2forms package with many new features and enhancements, especially for the written multiple-choice exams (NOPS).&lt;/p&gt; &lt;p&gt;&lt;img alt=&quot;New R/exams Version: exams2forms, Written NOPS Exams, and More&quot; src=&quot;https://www.R-exams.org/images/cran242.title.png&quot; /&gt;&lt;/p&gt; &lt;h2 id=&quot;overview&quot;&gt;Overview&lt;/h2&gt; &lt;p&gt;The new version 2.4-2 of the &lt;a href=&quot;https://www.R-exams.org/&quot;&gt;R/exams&lt;/a&gt; package has been released on the Comprehensive R Archive Network at &lt;a href=&quot;https://CRAN.R-project.org/package=exams&quot;&gt;https://CRAN.R-project.org/package=exams&lt;/a&gt; along with version 0.2-0 of the accompanying &lt;a href=&quot;https://www.R-exams.org/tutorials/exams2forms&quot;&gt;exams2forms&lt;/a&gt; package at &lt;a href=&quot;https://CRAN.R-project.org/package=exams2forms&quot;&gt;https://CRAN.R-project.org/package=exams2forms&lt;/a&gt;. For an overview of all changes in both packages, see their respective NEWS files: &lt;a href=&quot;https://CRAN.R-project.org/web/packages/exams/news/news.html&quot;&gt;exams NEWS&lt;/a&gt; and &lt;a href=&quot;https://CRAN.R-project.org/web/packages/exams2forms/news/news.html&quot;&gt;exams2forms NEWS&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The development of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; was originally prompted by &lt;a href=&quot;https://stackoverflow.com/questions/62315622/&quot;&gt;requests&lt;/a&gt; for R/exams infrastructure in online books via R/Markdown or Quarto. However, it turned out to be very useful for quite a few other applications including:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Testing exercises interactively during development without the need for import in a learning managment system.&lt;/li&gt; &lt;li&gt;Standalone (non-graded) quizzes as self-contained files, e.g., for download as open educational resources.&lt;/li&gt; &lt;li&gt;Browsing exercise pools, e.g., for sharing previews within a team.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;The other main area of development were extensions to the &lt;a href=&quot;https://www.R-exams.org/tutorials/exams2nops/&quot;&gt;written multiple-choice exams (NOPS)&lt;/a&gt; that can be automatically scanned and evaluated. This was prompted by the decision of the Faculty of Economics and Statistics at Universität Innsbruck to conduct all of their large-scale exams during the first years of the bachelor program using this infrastructure. Below we give an overview of the R functionality in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams&lt;/code&gt; package that support this endeavor. Those who are interested in how the administrative aspects are organized in Gitlab repositories with corresponding issues can check out the &lt;a href=&quot;https://git.uibk.ac.at/econstat/exams&quot;&gt;workflow documentation&lt;/a&gt; and a &lt;a href=&quot;https://git.uibk.ac.at/econstat/exams/demo&quot;&gt;demo project&lt;/a&gt; (both in German) on the university’s self-hosted Gitlab system.&lt;/p&gt; &lt;h2 id=&quot;interactive-web-exercises-via-exams2forms&quot;&gt;Interactive web exercises via exams2forms&lt;/h2&gt; &lt;p&gt;Version 0.1-0 of the package had been introduced in an &lt;a href=&quot;https://www.R-exams.org/tutorials/exams2forms&quot;&gt;exams2forms tutorial&lt;/a&gt; in a previous blog post. Prompted by our own needs as well as a lot of positive and constructive feedback, version 0.2-0 now contains many useful improvements and new features. Also, all exercise template pages on the R/exams web page now feature an interactive preview generated with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; using three random variations of each exercise. See &lt;a href=&quot;https://www.R-exams.org/templates/boxplots/&quot;&gt;boxplots&lt;/a&gt; or &lt;a href=&quot;https://www.R-exams.org/templates/lm2/&quot;&gt;lm2&lt;/a&gt; for two examples.&lt;/p&gt; &lt;h3 id=&quot;obfuscation&quot;&gt;Obfuscation&lt;/h3&gt; &lt;p&gt;The function &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms()&lt;/code&gt; as well as all underlying &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;forms_*()&lt;/code&gt; functions gained an argument &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;obfuscate = TRUE&lt;/code&gt; which provides some basic obfuscation of the correct answers for all forms in the underlying HTML code. Thus, all correct answers are still stored in the HTML but, by default, they are not easily readable anymore.&lt;/p&gt; &lt;h3 id=&quot;auto-display-of-filled-in-exercises&quot;&gt;Auto-display of filled-in exercises&lt;/h3&gt; &lt;p&gt;The function &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms()&lt;/code&gt; gained additional arguments &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;auto&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_filename&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;show_tolerance&lt;/code&gt;, which are useful for inspecting exercises during their development. To see the results with all forms pre-filled, check enabled, and display of solution, tolerances, and the file name, try:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;exams2webquiz(&quot;lm2.Rmd&quot;, auto = TRUE) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-05-05-cran_release_242/exams2forms_auto_lm2.html&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-05-05-cran_release_242/exams2forms_auto_lm2.png&quot; alt=&quot;Screenshot of auto-display of lm2 cloze exercise&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;h3 id=&quot;regular-expression-in-string-solutions&quot;&gt;Regular expression in string solutions&lt;/h3&gt; &lt;p&gt;The package now ships with some example exercises that illustrate a feature of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; that is not (or not easily) available in other &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2xyz&lt;/code&gt; interfaces: regular expressions for the correct answers of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;string&lt;/code&gt; exercises. To generate a &lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-05-05-cran_release_242/regexp.html&quot;&gt;demo quiz&lt;/a&gt; with these you can use:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;exams2webquiz(c(&quot;geography2.Rmd&quot;, &quot;email.Rmd&quot;), regex = TRUE, n = 3, edir = system.file(package = &quot;exams2forms&quot;)) &lt;/code&gt;&lt;/pre&gt; &lt;ul&gt; &lt;li&gt;The exercise &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;geography2.Rmd&lt;/code&gt; simply lists several solutions that are accepted using “or” regular expressions: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;^(answer1|answer2|answer3)$&lt;/code&gt;&lt;/li&gt; &lt;li&gt;The exercise &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;email.Rmd&lt;/code&gt; has a more complex regular expression for checking the validity of e-mail addresses. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;geography2.Rmd&lt;/code&gt; exercise.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-05-05-cran_release_242/regexp.html&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-05-05-cran_release_242/regexp.png&quot; alt=&quot;Screenshot of an R/exams webquiz with the regular expression exercises geography2.Rmd and email.Rmd&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;h2 id=&quot;multiple-choice-nops-exams&quot;&gt;Multiple-choice NOPS exams&lt;/h2&gt; &lt;p&gt;R/exams long provides infrastructure for large-scale multiple-choice exams that can be automatically scanned and evaluated, see the &lt;a href=&quot;https://www.R-exams.org/tutorials/exams2nops/&quot;&gt;exams2nops tutorial&lt;/a&gt; for an introduction. Previously, the workflow just comprised &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2nops()&lt;/code&gt; for generating the PDF exams, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan()&lt;/code&gt; for reading the filled-out and scanned exam sheets, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_eval()&lt;/code&gt; for evaluating all results, grading the exams, and generating reports for the participants.&lt;/p&gt; &lt;p&gt;However, addressing errors that occurred, in particularl during scanning, used to be rather inconvenient and necessitated editing some of the intermediate files manually. Therefore, version 2.4-1 of the package introduced a new function &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt; that greatly facilitates interactive quality control of exam sheets directly in R (and/or the browser). A dedicated tutorial for this functionality is under preparation.&lt;/p&gt; &lt;p&gt;Below we summarize the most important additions and improvements from version 2.4-1 (which had not yet been included in previous blog posts) and 2.4-2.&lt;/p&gt; &lt;h3 id=&quot;nops_fix&quot;&gt;nops_fix&lt;/h3&gt; &lt;p&gt;The new function &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt; can be applied to the ZIP file resulting from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan()&lt;/code&gt;. By default it goes through all rows of the scanned data and interactively prompts for updates to fields from the scanned exam sheets that need updating. It can also be applied repeatedly to iteratively check and resolve different potential problems.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Optionally, the user can specify the rows of the scanned data and/or the fields that should be updated.&lt;/li&gt; &lt;li&gt;Different display options are available with the two most important being: (1) Displaying only a section of the scanned sheet in the R plot window with interactive prompts on the R console. (2) Displaying the entire sheet in the browser with a Javascript form to enter all data which can be passed to R through the clipboard.&lt;/li&gt; &lt;li&gt;Display 1 is most convenient for iterating through smaller potential problems in sheets that have been scanned mostly correctly.&lt;/li&gt; &lt;li&gt;Display 2 is most convenient for entering scanned data for sheets that could not be read at all (e.g., due to rotation or damaged sheets etc.).&lt;/li&gt; &lt;li&gt;The default &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;display&lt;/code&gt; tries to make an educated guess for the more convenient option.&lt;/li&gt; &lt;li&gt;Dedicated &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;check = &quot;schoice&quot;&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;check = &quot;missing&quot;&lt;/code&gt; arguments are provided to go through exercises with more than one answer or missing answers, respectively.&lt;/li&gt; &lt;/ul&gt; &lt;h3 id=&quot;nops_scan&quot;&gt;nops_scan&lt;/h3&gt; &lt;p&gt;By default, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan()&lt;/code&gt; now relies on the R packages &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;qpdf&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;magick&lt;/code&gt; for merging/rotating/splitting PDF files and converting them to PNG, respectively. This greatly facilitates installation of the scanning infrastructure, especially for novice R/exams users.&lt;/p&gt; &lt;p&gt;Improvements have been made in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_scan()&lt;/code&gt; for reading scans from different paper formats (e.g., letter paper instead of A4) and for reading the registration id more reliably. Also, scanner markings are found more reliably, especially if the top-left marking is missing completely (e.g., because it was cut erroneously).&lt;/p&gt; &lt;h3 id=&quot;exams2nops-and-language-support&quot;&gt;exams2nops and language support&lt;/h3&gt; &lt;p&gt;Additional &lt;a href=&quot;https://www.R-exams.org/tutorials/nops_language/&quot;&gt;NOPS language&lt;/a&gt; support has been added: Bulgarian (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bg&lt;/code&gt;, contributed by Nikolay Rachev), Catalan (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ca&lt;/code&gt;, contributed by Paco Rivière), and Polish (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pl&lt;/code&gt;, contributed by Paweł Kleka). Corrections in French (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fr&lt;/code&gt;, contributed by Jean-Philippe Georget), Russian (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ru&lt;/code&gt;, contributed by Nikolay Rachev), and Spanish (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;es&lt;/code&gt;, contributed by Flavio Lozano Isla).&lt;/p&gt; &lt;p&gt;Moreover, there are various improvements and new arguments in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2nops()&lt;/code&gt;:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;New argument &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;helvet = TRUE&lt;/code&gt; which allows to suppress the default Helvetica font in order to facilitate using other fonts.&lt;/li&gt; &lt;li&gt;New argument &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;newpage = FALSE&lt;/code&gt; to facilitate adding page breaks after every exercise.&lt;/li&gt; &lt;li&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;logo&lt;/code&gt; can now also be a relative path (relative to the working directory). Also &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;logo = &quot;uibk&quot;&lt;/code&gt; is supported as a convenience option for including the logo of Universität Innsbruck.&lt;/li&gt; &lt;li&gt;The exam type now codes the number of exercises directly (rather than rounding the number to multiples of 5). This facilitates fixing the correct number of questions in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nops_fix()&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;Answer lists are now labeled “a.”, “b.”, etc. everywhere rather than “(a)”, “(b)”, etc.&lt;/li&gt; &lt;/ul&gt; &lt;h2 id=&quot;more-features-and-improvements&quot;&gt;More features and improvements&lt;/h2&gt; &lt;h3 id=&quot;new-exercises&quot;&gt;New exercises&lt;/h3&gt; &lt;p&gt;There are two new demo exercises: &lt;a href=&quot;https://www.R-exams.org/templates/flags/&quot;&gt;flags&lt;/a&gt; illustrating the handling of Unicode characters for flags in a flexible way. &lt;a href=&quot;https://www.R-exams.org/templates/sumdiff/&quot;&gt;sumdiff&lt;/a&gt; is a minimal example for using random numbers in arithmetic exercises.&lt;/p&gt; &lt;h3 id=&quot;evaluation-strategies-in-learning-managment-systems&quot;&gt;Evaluation strategies in learning managment systems&lt;/h3&gt; &lt;p&gt;The default evaluation rule for all learning management systems (including &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2moodle&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2canvas&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2openolat&lt;/code&gt;, etc.) is now consistently &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;negative = FALSE&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;partial = TRUE&lt;/code&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rule = &quot;false2&quot;&lt;/code&gt;. Thus, there should not be negative points for any exercise type and partial credits should be used for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;mchoice&lt;/code&gt; exercises (and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;mchoice&lt;/code&gt; interactions within &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cloze&lt;/code&gt; exercises).&lt;/p&gt; &lt;h3 id=&quot;stress-testing-exercises&quot;&gt;Stress-testing exercises&lt;/h3&gt; &lt;p&gt;New arguments have been added in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;stresstest_exercise()&lt;/code&gt; to facilitate &lt;a href=&quot;https://www.R-exams.org/tutorials/stresstest/&quot;&gt;stress-testing exercises&lt;/a&gt;, especially for large collections of exercises:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;stop_on_error = length(as.character(unlist(file))) &amp;lt; 2&lt;/code&gt;: Should stresstesting stop or continue after encountering an error in one of the exercises?&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;timeout = NULL&lt;/code&gt;: Set a time limit for running each exercise, e.g., to avoid running into infinite loops etc.&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;maxit = getOption(&quot;num_to_schoice_maxit&quot;, -10000L)&lt;/code&gt;: Default number of iterations in case &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;num_to_schoice()&lt;/code&gt; is used (see below).&lt;/li&gt; &lt;/ul&gt; &lt;h3 id=&quot;standalone-pdf-files&quot;&gt;Standalone PDF files&lt;/h3&gt; &lt;p&gt;Customizing the LaTeX template in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2pdf()&lt;/code&gt; has been facilitated by adding the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;usepackage&lt;/code&gt; argument and streamlining processing of the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;header&lt;/code&gt; argument.&lt;/p&gt; &lt;p&gt;Additionally, the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;{Sweave}&lt;/code&gt; LaTeX package is no longer loaded in the LaTeX templates (like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;plain.tex&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams.tex&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;solution.tex&lt;/code&gt;, etc.). Instead the LaTeX environments for displaying R code and the accompanying LaTeX dependencies are loaded directly.&lt;/p&gt; &lt;h3 id=&quot;misc&quot;&gt;Misc&lt;/h3&gt; &lt;ul&gt; &lt;li&gt;Include better table formatting by default in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2moodle()&lt;/code&gt; via styles &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;table = &quot;table_shade&quot;&lt;/code&gt; (default), &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;table_rule&quot;&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;table_grid&quot;&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;New arguments in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;num_to_schoice()&lt;/code&gt; to facilitate &lt;a href=&quot;https://www.R-exams.org/tutorials/static_num_schoice/&quot;&gt;converting numeric to single-choice exercises&lt;/a&gt;: &lt;ul&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;format = TRUE&lt;/code&gt;: Should the question list be formatted to a character vector with LaTeX math markup (default)? Alternatively, the question list can be numeric (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;format = FALSE&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;numeric&quot;&lt;/code&gt;) or a formatted character vector without LaTeX math markup (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;format = &quot;character&quot;&lt;/code&gt;).&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;order = getOption(&quot;num_to_schoice_order&quot;, FALSE)&lt;/code&gt;: Should the question list be ordered numerically? If &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;FALSE&lt;/code&gt; (default) the question list is shuffled randomly.&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;maxit = getOption(&quot;num_to_schoice_maxit&quot;, Inf)&lt;/code&gt;: Maximum number of iterations to try to find a feasible set of wrong solutions for the question list.&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt;</content>
			
				<category term="general" />
			
			
				<category term="R" />
			
				<category term="exams" />
			
				<category term="exams2forms" />
			
				<category term="exams2nops" />
			
			<published>2025-05-05T00:00:00+02:00</published>
		</entry>
	
    
    
		<entry>
			<id>https://www.R-exams.org/templates/vowels/</id>
			<title>vowels: Phonetics Cloze Quiz about Cardinal Vowels</title>
			<link href="https://www.R-exams.org/templates/vowels/" rel="alternate" type="text/html" title="vowels: Phonetics Cloze Quiz about Cardinal Vowels" />
			<updated>2025-04-30T00:00:00+02:00</updated>
			
				
				<author>
					
						<name>Achim Zeileis</name>
					
					
						<email>Achim.Zeileis@R-project.org</email>
					
					
						<uri>https://eeecon.uibk.ac.at/~zeileis/</uri>
					
				</author>
			
			<summary>Cloze exercise in which two randomly-selected Cardinal vowels have to be described according to the three parameters vowel height, frontness-backness, and lip rounding.</summary>
			<content type="html" xml:base="https://www.R-exams.org/templates/vowels/">&lt;p&gt;Cloze exercise in which two randomly-selected Cardinal vowels have to be described according to the three parameters vowel height, frontness-backness, and lip rounding.&lt;/p&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Name:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;vowels&lt;/code&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Type:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/tag/cloze/&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;cloze&lt;/code&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t20 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Preview:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;div class=&quot;webex-group&quot;&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;Describe the following Cardinal vowels according to the three parameters vowel height, frontness-backness, and lip rounding:&lt;/p&gt; &lt;ol style=&quot;list-style-type: decimal&quot;&gt; &lt;li&gt;[e] is the &lt;select class=&quot;webex-select&quot; id=&quot;webex-a59283e18668499db0603c7244e39487&quot; data-answer=&quot;OgUVAhQCSQEUBhoIGAlk&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;close&lt;/option&gt;&lt;option&gt;near-close&lt;/option&gt;&lt;option&gt;close-mid&lt;/option&gt;&lt;option&gt;mid&lt;/option&gt;&lt;option&gt;open-mid&lt;/option&gt;&lt;option&gt;near-open&lt;/option&gt;&lt;option&gt;open&lt;/option&gt;&lt;/select&gt; &lt;select class=&quot;webex-select&quot; id=&quot;webex-a910d108795aaf94fc33f092e3cdcea1&quot; data-answer=&quot;OggdAEgBHAgbCWg=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;front&lt;/option&gt;&lt;option&gt;front centralized&lt;/option&gt;&lt;option&gt;central&lt;/option&gt;&lt;option&gt;back centralized&lt;/option&gt;&lt;option&gt;back&lt;/option&gt;&lt;/select&gt; &lt;select class=&quot;webex-select&quot; id=&quot;webex-7c622f1da0886a038f66fea978517c24&quot; data-answer=&quot;bFIaAm8=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;unrounded&lt;/option&gt;&lt;option&gt;rounded&lt;/option&gt;&lt;/select&gt; vowel.&lt;/li&gt; &lt;li&gt;[ɶ] is the &lt;select class=&quot;webex-select&quot; id=&quot;webex-0befbd41c88078b4a69fc8e73996adea&quot; data-answer=&quot;a1JJVk5UGAFPCBQAGwk/&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;close&lt;/option&gt;&lt;option&gt;near-close&lt;/option&gt;&lt;option&gt;close-mid&lt;/option&gt;&lt;option&gt;mid&lt;/option&gt;&lt;option&gt;open-mid&lt;/option&gt;&lt;option&gt;near-open&lt;/option&gt;&lt;option&gt;open&lt;/option&gt;&lt;/select&gt; &lt;select class=&quot;webex-select&quot; id=&quot;webex-5ac9a09e8845477d3d710cc4f9ab2f44&quot; data-answer=&quot;blBPCU0AFVUUCGk=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;front&lt;/option&gt;&lt;option&gt;front centralized&lt;/option&gt;&lt;option&gt;central&lt;/option&gt;&lt;option&gt;back centralized&lt;/option&gt;&lt;option&gt;back&lt;/option&gt;&lt;/select&gt; &lt;select class=&quot;webex-select&quot; id=&quot;webex-bc114c98791ff485a6a1eef904d249ab&quot; data-answer=&quot;OVMdAGk=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;unrounded&lt;/option&gt;&lt;option&gt;rounded&lt;/option&gt;&lt;/select&gt; vowel.&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;For an overview of the 18 Cardinal vowels see &lt;a href=&quot;https://en.wikipedia.org/wiki/Cardinal_vowels&quot; class=&quot;uri&quot;&gt;https://en.wikipedia.org/wiki/Cardinal_vowels&lt;/a&gt;.&lt;/p&gt; &lt;ol style=&quot;list-style-type: decimal&quot;&gt; &lt;li&gt;[e] is the close-mid front unrounded vowel.&lt;/li&gt; &lt;li&gt;[ɶ] is the open front rounded vowel.&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;Describe the following Cardinal vowels according to the three parameters vowel height, frontness-backness, and lip rounding:&lt;/p&gt; &lt;ol style=&quot;list-style-type: decimal&quot;&gt; &lt;li&gt;[ɶ] is the &lt;select class=&quot;webex-select&quot; id=&quot;webex-d0088f7aecab550e36a9764b6e9e7fd1&quot; data-answer=&quot;PwAcCBRWG1FJU01SGQRt&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;close&lt;/option&gt;&lt;option&gt;near-close&lt;/option&gt;&lt;option&gt;close-mid&lt;/option&gt;&lt;option&gt;mid&lt;/option&gt;&lt;option&gt;open-mid&lt;/option&gt;&lt;option&gt;near-open&lt;/option&gt;&lt;option&gt;open&lt;/option&gt;&lt;/select&gt; &lt;select class=&quot;webex-select&quot; id=&quot;webex-de9fb4f02fed6cc68491ebfa1c4d7598&quot; data-answer=&quot;P1QVVk4ESgAeVjg=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;front&lt;/option&gt;&lt;option&gt;front centralized&lt;/option&gt;&lt;option&gt;central&lt;/option&gt;&lt;option&gt;back centralized&lt;/option&gt;&lt;option&gt;back&lt;/option&gt;&lt;/select&gt; &lt;select class=&quot;webex-select&quot; id=&quot;webex-455f36580c6f44255477b292e741bdae&quot; data-answer=&quot;bwUZV24=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;unrounded&lt;/option&gt;&lt;option&gt;rounded&lt;/option&gt;&lt;/select&gt; vowel.&lt;/li&gt; &lt;li&gt;[o] is the &lt;select class=&quot;webex-select&quot; id=&quot;webex-b1a649e392c4b3ab2c8d079312ee87cf&quot; data-answer=&quot;OQFNBhgISQMVAk8ETgM8&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;close&lt;/option&gt;&lt;option&gt;near-close&lt;/option&gt;&lt;option&gt;close-mid&lt;/option&gt;&lt;option&gt;mid&lt;/option&gt;&lt;option&gt;open-mid&lt;/option&gt;&lt;option&gt;near-open&lt;/option&gt;&lt;option&gt;open&lt;/option&gt;&lt;/select&gt; &lt;select class=&quot;webex-select&quot; id=&quot;webex-b5801aa039e82b8811f668d8fd5be81e&quot; data-answer=&quot;OQUUAB1RTQAfCDg=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;front&lt;/option&gt;&lt;option&gt;front centralized&lt;/option&gt;&lt;option&gt;central&lt;/option&gt;&lt;option&gt;back centralized&lt;/option&gt;&lt;option&gt;back&lt;/option&gt;&lt;/select&gt; &lt;select class=&quot;webex-select&quot; id=&quot;webex-ab505fa4fe7bbac04b58764a7b5bcf8c&quot; data-answer=&quot;OlIZAWg=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;unrounded&lt;/option&gt;&lt;option&gt;rounded&lt;/option&gt;&lt;/select&gt; vowel.&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;For an overview of the 18 Cardinal vowels see &lt;a href=&quot;https://en.wikipedia.org/wiki/Cardinal_vowels&quot; class=&quot;uri&quot;&gt;https://en.wikipedia.org/wiki/Cardinal_vowels&lt;/a&gt;.&lt;/p&gt; &lt;ol style=&quot;list-style-type: decimal&quot;&gt; &lt;li&gt;[ɶ] is the open front rounded vowel.&lt;/li&gt; &lt;li&gt;[o] is the close-mid back rounded vowel.&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;Describe the following Cardinal vowels according to the three parameters vowel height, frontness-backness, and lip rounding:&lt;/p&gt; &lt;ol style=&quot;list-style-type: decimal&quot;&gt; &lt;li&gt;[ʉ] is the &lt;select class=&quot;webex-select&quot; id=&quot;webex-b330c2bd92bb597b57e104d8b0435e45&quot; data-answer=&quot;OQIfAE8CTlQVAk5SGQlq&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;close&lt;/option&gt;&lt;option&gt;near-close&lt;/option&gt;&lt;option&gt;close-mid&lt;/option&gt;&lt;option&gt;mid&lt;/option&gt;&lt;option&gt;open-mid&lt;/option&gt;&lt;option&gt;near-open&lt;/option&gt;&lt;option&gt;open&lt;/option&gt;&lt;/select&gt; &lt;select class=&quot;webex-select&quot; id=&quot;webex-68ddb97b6262509b3f7e58070c84cb7e&quot; data-answer=&quot;bQhIVE4IG1IaAms=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;front&lt;/option&gt;&lt;option&gt;front centralized&lt;/option&gt;&lt;option&gt;central&lt;/option&gt;&lt;option&gt;back centralized&lt;/option&gt;&lt;option&gt;back&lt;/option&gt;&lt;/select&gt; &lt;select class=&quot;webex-select&quot; id=&quot;webex-d3995e44ab205009c882344ba95e3894&quot; data-answer=&quot;PwMVCGg=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;unrounded&lt;/option&gt;&lt;option&gt;rounded&lt;/option&gt;&lt;/select&gt; vowel.&lt;/li&gt; &lt;li&gt;[i] is the &lt;select class=&quot;webex-select&quot; id=&quot;webex-62455b647d641059759df3bdce150f72&quot; data-answer=&quot;bQMYBRlSGgQbVBoEHQBo&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;close&lt;/option&gt;&lt;option&gt;near-close&lt;/option&gt;&lt;option&gt;close-mid&lt;/option&gt;&lt;option&gt;mid&lt;/option&gt;&lt;option&gt;open-mid&lt;/option&gt;&lt;option&gt;near-open&lt;/option&gt;&lt;option&gt;open&lt;/option&gt;&lt;/select&gt; &lt;select class=&quot;webex-select&quot; id=&quot;webex-7354946181051c0f3ca654aa93e371a7&quot; data-answer=&quot;bAIZBBUEGgEUAW0=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;front&lt;/option&gt;&lt;option&gt;front centralized&lt;/option&gt;&lt;option&gt;central&lt;/option&gt;&lt;option&gt;back centralized&lt;/option&gt;&lt;option&gt;back&lt;/option&gt;&lt;/select&gt; &lt;select class=&quot;webex-select&quot; id=&quot;webex-505fcf5f19cb9a19c2e9b9b76938799a&quot; data-answer=&quot;bgEZVj4=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;unrounded&lt;/option&gt;&lt;option&gt;rounded&lt;/option&gt;&lt;/select&gt; vowel.&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;For an overview of the 18 Cardinal vowels see &lt;a href=&quot;https://en.wikipedia.org/wiki/Cardinal_vowels&quot; class=&quot;uri&quot;&gt;https://en.wikipedia.org/wiki/Cardinal_vowels&lt;/a&gt;.&lt;/p&gt; &lt;ol style=&quot;list-style-type: decimal&quot;&gt; &lt;li&gt;[ʉ] is the close central rounded vowel.&lt;/li&gt; &lt;li&gt;[i] is the close front unrounded vowel.&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t20 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;This cloze exercise randomly selects two out of 18 Cardinal vowels and then uses three single-choice elements each to describe their parameters. It is particularly well-suited for drop-down menus and also illustrates how Unicode symbols can be used for the phonetic transcriptions in the International Phonetic Alphabet (which requires the fontspec package in XeLaTeX for PDF output).&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Solution feedback:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;Yes&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Randomization:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;Shuffling (2 out of 18 Cardinal vowels)&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Mathematical notation:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Verbatim R input/output:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Images:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Other supplements:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t20 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Template:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-vowels//vowels.Rmd&quot;&gt;vowels.Rmd&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-vowels//vowels.Rnw&quot;&gt;vowels.Rnw&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Raw:&lt;/b&gt; (1 random version)&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-vowels//vowels.md&quot;&gt;vowels.md&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-vowels//vowels.tex&quot;&gt;vowels.tex&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;PDF:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-vowels//vowels-Rmd.pdf&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-04-30-vowels//vowels-Rmd-pdf.png&quot; alt=&quot;vowels-Rmd-pdf&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-vowels//vowels-Rnw.pdf&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-04-30-vowels//vowels-Rnw-pdf.png&quot; alt=&quot;vowels-Rnw-pdf&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b20&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;HTML:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-vowels//vowels-Rmd.html&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-04-30-vowels//vowels-Rmd-html.png&quot; alt=&quot;vowels-Rmd-html&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-vowels//vowels-Rnw.html&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-04-30-vowels//vowels-Rnw-html.png&quot; alt=&quot;vowels-Rnw-html&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;p&gt;&lt;strong&gt;Demo code:&lt;/strong&gt;&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;library(&amp;quot;exams&amp;quot;) set.seed(403) exams2html(&amp;quot;vowels.Rmd&amp;quot;) set.seed(403) exams2pdf(&amp;quot;vowels.Rmd&amp;quot;, texengine = &quot;xelatex&quot;, usepackage = &quot;fontspec&quot;, header = &quot;\\setmainfont{Doulos SIL}&quot;) set.seed(403) exams2html(&amp;quot;vowels.Rnw&amp;quot;) set.seed(403) exams2pdf(&amp;quot;vowels.Rnw&amp;quot;, texengine = &quot;xelatex&quot;, usepackage = &quot;fontspec&quot;, header = &quot;\\setmainfont{Doulos SIL}&quot;)&lt;/code&gt;&lt;/pre&gt;</content>
			
				<category term="templates" />
			
			
				<category term="cloze" />
			
				<category term="knowledge" />
			
				<category term="quiz" />
			
				<category term="utf8" />
			
			<published>2025-04-30T00:00:00+02:00</published>
		</entry>
	
    
    
		<entry>
			<id>https://www.R-exams.org/templates/flags/</id>
			<title>flags: Fun with Flags</title>
			<link href="https://www.R-exams.org/templates/flags/" rel="alternate" type="text/html" title="flags: Fun with Flags" />
			<updated>2025-04-30T00:00:00+02:00</updated>
			
				
				<author>
					
						<name>Achim Zeileis</name>
					
					
						<email>Achim.Zeileis@R-project.org</email>
					
					
						<uri>https://eeecon.uibk.ac.at/~zeileis/</uri>
					
				</author>
			
			<summary>Single-choice knowledge quiz question in which the correct flag for a country has to be selected from a list of flags.</summary>
			<content type="html" xml:base="https://www.R-exams.org/templates/flags/">&lt;p&gt;Single-choice knowledge quiz question in which the correct flag for a country has to be selected from a list of flags.&lt;/p&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Name:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;flags&lt;/code&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Type:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/tag/schoice/&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;schoice&lt;/code&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Related:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/templates/capitals/&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;capitals&lt;/code&gt;&lt;/a&gt;, &lt;a href=&quot;https://www.R-exams.org/templates/countrycodes/&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;countrycodes&lt;/code&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t20 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Preview:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;div class=&quot;webex-group&quot;&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;Which is the flag of Bolivia?&lt;/p&gt; &lt;div id=&quot;webex-bafebc856cfa73e92dbc0fc90a55bfa6&quot; class=&quot;webex-radiogroup&quot; data-answer=&quot;OVFKVE5TFAUaUzs=&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;bafebc856cfa73e92dbc0fc90a55bfa6&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇨🇱&lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;bafebc856cfa73e92dbc0fc90a55bfa6&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇧🇴&lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;bafebc856cfa73e92dbc0fc90a55bfa6&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇵🇪&lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;bafebc856cfa73e92dbc0fc90a55bfa6&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇧🇷&lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;bafebc856cfa73e92dbc0fc90a55bfa6&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇦🇷&lt;/span&gt;&lt;/span&gt;&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;ul&gt; &lt;li&gt;False. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇨🇱&lt;/span&gt; is the flag of Chile.&lt;/li&gt; &lt;li&gt;True. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇧🇴&lt;/span&gt; is the flag of Bolivia.&lt;/li&gt; &lt;li&gt;False. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇵🇪&lt;/span&gt; is the flag of Peru.&lt;/li&gt; &lt;li&gt;False. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇧🇷&lt;/span&gt; is the flag of Brazil.&lt;/li&gt; &lt;li&gt;False. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇦🇷&lt;/span&gt; is the flag of Argentina.&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;Which is the flag of Honduras?&lt;/p&gt; &lt;div id=&quot;webex-70bc123503c17ce525725118ed321ec0&quot; class=&quot;webex-radiogroup&quot; data-answer=&quot;bABOUx0CHwUcAj4=&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;70bc123503c17ce525725118ed321ec0&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇨🇷&lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;70bc123503c17ce525725118ed321ec0&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇬🇹&lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;70bc123503c17ce525725118ed321ec0&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇳🇮&lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;70bc123503c17ce525725118ed321ec0&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇸🇻&lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;70bc123503c17ce525725118ed321ec0&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇭🇳&lt;/span&gt;&lt;/span&gt;&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;ul&gt; &lt;li&gt;False. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇨🇷&lt;/span&gt; is the flag of Costa Rica.&lt;/li&gt; &lt;li&gt;False. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇬🇹&lt;/span&gt; is the flag of Guatemala.&lt;/li&gt; &lt;li&gt;False. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇳🇮&lt;/span&gt; is the flag of Nicaragua.&lt;/li&gt; &lt;li&gt;False. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇸🇻&lt;/span&gt; is the flag of El Salvador.&lt;/li&gt; &lt;li&gt;True. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇭🇳&lt;/span&gt; is the flag of Honduras.&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;Which is the flag of Ethiopia?&lt;/p&gt; &lt;div id=&quot;webex-69e689007b4af81fff294176f81e40db&quot; class=&quot;webex-radiogroup&quot; data-answer=&quot;bQhJBhQJHAAbUmk=&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;69e689007b4af81fff294176f81e40db&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇪🇹&lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;69e689007b4af81fff294176f81e40db&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇪🇷&lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;69e689007b4af81fff294176f81e40db&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇸🇩&lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;69e689007b4af81fff294176f81e40db&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇸🇸&lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;69e689007b4af81fff294176f81e40db&quot; /&gt;&lt;span&gt;&lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇩🇯&lt;/span&gt;&lt;/span&gt;&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;ul&gt; &lt;li&gt;True. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇪🇹&lt;/span&gt; is the flag of Ethiopia.&lt;/li&gt; &lt;li&gt;False. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇪🇷&lt;/span&gt; is the flag of Eritrea.&lt;/li&gt; &lt;li&gt;False. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇸🇩&lt;/span&gt; is the flag of Sudan.&lt;/li&gt; &lt;li&gt;False. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇸🇸&lt;/span&gt; is the flag of South Sudan.&lt;/li&gt; &lt;li&gt;False. &lt;span style=&quot;font-size: 200%; vertical-align: middle&quot;&gt;🇩🇯&lt;/span&gt; is the flag of Djibouti.&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t20 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;The exercise contains a large list of countries from all continents around the world along with their direct neighbors (sharing a border) and their secondary neighbors (neighbors of neighbors). Flags are generated from the ISO 3166-1 alpha-2 codes, either via their Unicode symbols (especially in HTML-based output) or using the {worldflags} LaTeX package (in PDF output).&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Solution feedback:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;Yes&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Randomization:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;Shuffling (1 out of 136 countries)&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Mathematical notation:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Verbatim R input/output:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Images:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Other supplements:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t20 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Template:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-flags//flags.Rmd&quot;&gt;flags.Rmd&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-flags//flags.Rnw&quot;&gt;flags.Rnw&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Raw:&lt;/b&gt; (1 random version)&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-flags//flags.md&quot;&gt;flags.md&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-flags//flags.tex&quot;&gt;flags.tex&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;PDF:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-flags//flags-Rmd.pdf&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-04-30-flags//flags-Rmd-pdf.png&quot; alt=&quot;flags-Rmd-pdf&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-flags//flags-Rnw.pdf&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-04-30-flags//flags-Rnw-pdf.png&quot; alt=&quot;flags-Rnw-pdf&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b20&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;HTML:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-flags//flags-Rmd.html&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-04-30-flags//flags-Rmd-html.png&quot; alt=&quot;flags-Rmd-html&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-30-flags//flags-Rnw.html&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-04-30-flags//flags-Rnw-html.png&quot; alt=&quot;flags-Rnw-html&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;p&gt;&lt;strong&gt;Demo code:&lt;/strong&gt;&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;library(&amp;quot;exams&amp;quot;) set.seed(403) exams2html(&amp;quot;flags.Rmd&amp;quot;) set.seed(403) exams2pdf(&amp;quot;flags.Rmd&amp;quot;, usepackage = &quot;worldflags&quot;) set.seed(403) exams2html(&amp;quot;flags.Rnw&amp;quot;) set.seed(403) exams2pdf(&amp;quot;flags.Rnw&amp;quot;, usepackage = &quot;worldflags&quot;)&lt;/code&gt;&lt;/pre&gt;</content>
			
				<category term="templates" />
			
			
				<category term="schoice" />
			
				<category term="multiple-choice" />
			
				<category term="knowledge" />
			
				<category term="quiz" />
			
				<category term="utf8" />
			
			<published>2025-04-30T00:00:00+02:00</published>
		</entry>
	
    
    
		<entry>
			<id>https://www.R-exams.org/templates/sumdiff/</id>
			<title>sumdiff: Sum Minus Difference</title>
			<link href="https://www.R-exams.org/templates/sumdiff/" rel="alternate" type="text/html" title="sumdiff: Sum Minus Difference" />
			<updated>2025-04-29T00:00:00+02:00</updated>
			
				
				<author>
					
						<name>Achim Zeileis</name>
					
					
						<email>Achim.Zeileis@R-project.org</email>
					
					
						<uri>https://eeecon.uibk.ac.at/~zeileis/</uri>
					
				</author>
			
			<summary>Exercise template for a very basic arithmetic task, namely computing the sum of two random numbers minus their difference.</summary>
			<content type="html" xml:base="https://www.R-exams.org/templates/sumdiff/">&lt;p&gt;Exercise template for a very basic arithmetic task, namely computing the sum of two random numbers minus their difference.&lt;/p&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Name:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;sumdiff&lt;/code&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Type:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/tag/num/&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;num&lt;/code&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Related:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/templates/deriv/&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;deriv&lt;/code&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t20 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Preview:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;&lt;div class=&quot;webex-group&quot;&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;By how much is the sum of the numbers 52 and 30 greater than the difference between these numbers?&lt;/p&gt; &lt;p&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-45c516a5523019e867e714f3cdff598c&quot; data-tol=&quot;0&quot; size=&quot;20&quot; data-answer=&quot;bxdVBRNr&quot; /&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;The result of the calculation is (52 + 30) - (52 - 30) = 82 - 22 = 60.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;By how much is the sum of the numbers 32 and 22 greater than the difference between these numbers?&lt;/p&gt; &lt;p&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-51a6648ff1acb7f17671efb043820da7&quot; data-tol=&quot;0&quot; size=&quot;20&quot; data-answer=&quot;bhNVAhRp&quot; /&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;The result of the calculation is (32 + 22) - (32 - 22) = 54 - 10 = 44.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;By how much is the sum of the numbers 42 and 31 greater than the difference between these numbers?&lt;/p&gt; &lt;p&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-ab7c9bae65f3de032ec4aad8179135d8&quot; data-tol=&quot;0&quot; size=&quot;20&quot; data-answer=&quot;OkABURs/&quot; /&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;The result of the calculation is (42 + 31) - (42 - 31) = 73 - 11 = 62.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t20 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;Minimal arithmetic task (sum of two numbers minus their difference) with randomly-drawn numbers but only short text description and no mathematical notation in LaTeX.&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Solution feedback:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;Yes&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Randomization:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;Random numbers&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Mathematical notation:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Verbatim R input/output:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Images:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Other supplements:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-8 columns&quot;&gt;No&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t20 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Template:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-29-sumdiff//sumdiff.Rmd&quot;&gt;sumdiff.Rmd&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-29-sumdiff//sumdiff.Rnw&quot;&gt;sumdiff.Rnw&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;Raw:&lt;/b&gt; (1 random version)&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-29-sumdiff//sumdiff.md&quot;&gt;sumdiff.md&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-29-sumdiff//sumdiff.tex&quot;&gt;sumdiff.tex&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b1&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;PDF:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-29-sumdiff//sumdiff-Rmd.pdf&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-04-29-sumdiff//sumdiff-Rmd-pdf.png&quot; alt=&quot;sumdiff-Rmd-pdf&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-29-sumdiff//sumdiff-Rnw.pdf&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-04-29-sumdiff//sumdiff-Rnw-pdf.png&quot; alt=&quot;sumdiff-Rnw-pdf&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;row t1 b20&quot;&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;b&gt;HTML:&lt;/b&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-29-sumdiff//sumdiff-Rmd.html&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-04-29-sumdiff//sumdiff-Rmd-html.png&quot; alt=&quot;sumdiff-Rmd-html&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;medium-4 columns&quot;&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2025-04-29-sumdiff//sumdiff-Rnw.html&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2025-04-29-sumdiff//sumdiff-Rnw-html.png&quot; alt=&quot;sumdiff-Rnw-html&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;p&gt;&lt;strong&gt;Demo code:&lt;/strong&gt;&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;library(&amp;quot;exams&amp;quot;) set.seed(403) exams2html(&amp;quot;sumdiff.Rmd&amp;quot;) set.seed(403) exams2pdf(&amp;quot;sumdiff.Rmd&amp;quot;) set.seed(403) exams2html(&amp;quot;sumdiff.Rnw&amp;quot;) set.seed(403) exams2pdf(&amp;quot;sumdiff.Rnw&amp;quot;)&lt;/code&gt;&lt;/pre&gt;</content>
			
				<category term="templates" />
			
			
				<category term="num" />
			
				<category term="numeric" />
			
				<category term="arithmetic" />
			
				<category term="mathematics" />
			
			<published>2025-04-29T00:00:00+02:00</published>
		</entry>
	
    
    
		<entry>
			<id>https://www.R-exams.org/tutorials/exams2forms/</id>
			<title>Embedding R/exams Exercises as Forms in R/Markdown or Quarto Documents</title>
			<link href="https://www.R-exams.org/tutorials/exams2forms/" rel="alternate" type="text/html" title="Embedding R/exams Exercises as Forms in R/Markdown or Quarto Documents" />
			<updated>2024-11-07T00:00:00+01:00</updated>
			
				
				<author>
					
						<name>Achim Zeileis</name>
					
					
						<email>Achim.Zeileis@R-project.org</email>
					
					
						<uri>https://eeecon.uibk.ac.at/~zeileis/</uri>
					
				</author>
			
			<summary>Introduction to the new exams2forms package for including quizzes or individual questions from dynamic exercise templates into rmarkdown or quarto documents, e.g., for self-paced learning and self-assessment.</summary>
			<content type="html" xml:base="https://www.R-exams.org/tutorials/exams2forms/">&lt;p&gt;Introduction to the new exams2forms package for including quizzes or individual questions from dynamic exercise templates into rmarkdown or quarto documents, e.g., for self-paced learning and self-assessment.&lt;/p&gt; &lt;p&gt;&lt;img alt=&quot;Embedding R/exams Exercises as Forms in R/Markdown or Quarto Documents&quot; src=&quot;https://www.R-exams.org/images/exams2forms.title.png&quot; /&gt;&lt;/p&gt; &lt;h2 id=&quot;overview&quot;&gt;Overview&lt;/h2&gt; &lt;p&gt;The new package &lt;a href=&quot;https://CRAN.R-project.org/package=exams2forms&quot;&gt;exams2forms&lt;/a&gt;, co-authored with &lt;a href=&quot;https://retostauffer.org/&quot;&gt;Reto Stauffer&lt;/a&gt;, provides several building blocks for embedding exercises written with the R package &lt;a href=&quot;https://www.R-exams.org&quot;&gt;exams&lt;/a&gt; (also known as R/exams) in interactive documents or quizzes written with &lt;a href=&quot;https://rmarkdown.rstudio.com/&quot;&gt;rmarkdown&lt;/a&gt; or &lt;a href=&quot;https://quarto.org/&quot;&gt;quarto&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The idea is that the &lt;a href=&quot;https://www.R-exams.org/intro/dynamic/&quot;&gt;dynamic exercises&lt;/a&gt; in R/exams’ Rmd (R/Markdown) or Rnw (R/LaTeX) format can also be reused in HTML documents, web pages, or online books. This facilitates their use for self-paced learning and self-assessment without the need for a learning management system etc. (By default the correct answers are obfuscated in the documents so that they are not obvious when inspecting the HTML source code.) And for (summative) assessments the same dynamic exercises could then be exported to different &lt;a href=&quot;https://www.R-exams.org/intro/elearning/&quot;&gt;learning management systems&lt;/a&gt; or employed in &lt;a href=&quot;https://www.R-exams.org/intro/written/&quot;&gt;written exams&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;All R/exams exercise types are supported:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Single-choice (schoice).&lt;/li&gt; &lt;li&gt;Multiple-choice (mchoice).&lt;/li&gt; &lt;li&gt;Numeric (num).&lt;/li&gt; &lt;li&gt;Text (string).&lt;/li&gt; &lt;li&gt;Cloze combining all of the previous elements (cloze).&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Many of the ideas as well as the code in the package have been adapted from the &lt;a href=&quot;https://psyteachr.github.io/webexercises/&quot;&gt;webexercises&lt;/a&gt; package, authored by Dale Barr and Lisa DeBruine.&lt;/p&gt; &lt;h2 id=&quot;first-examples&quot;&gt;First examples&lt;/h2&gt; &lt;p&gt;As quick demonstration for R/exams exercises embedded into an HTML document, the two examples from the &lt;a href=&quot;https://www.R-exams.org/tutorials/first_steps/&quot;&gt;First Steps&lt;/a&gt; tutorial are included below: The single-choice exercise &lt;a href=&quot;https://www.R-exams.org/templates/swisscapital/&quot;&gt;swisscapital&lt;/a&gt; and the numeric exercise &lt;a href=&quot;https://www.R-exams.org/templates/deriv/&quot;&gt;deriv&lt;/a&gt;, both in three random variations.&lt;/p&gt; &lt;div class=&quot;webex-group&quot;&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;What is the seat of the federal authorities in Switzerland (i.e., the de facto capital)?&lt;/p&gt; &lt;div id=&quot;webex-775fd529fd210f4fe006804ccefe117a&quot; class=&quot;webex-radiogroup&quot; data-answer=&quot;bAcZVkgFHghKVG8=&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;775fd529fd210f4fe006804ccefe117a&quot; /&gt;&lt;span&gt;Geneva&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;775fd529fd210f4fe006804ccefe117a&quot; /&gt;&lt;span&gt;Lausanne&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;775fd529fd210f4fe006804ccefe117a&quot; /&gt;&lt;span&gt;St. Gallen&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;775fd529fd210f4fe006804ccefe117a&quot; /&gt;&lt;span&gt;Bern&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;775fd529fd210f4fe006804ccefe117a&quot; /&gt;&lt;span&gt;Vaduz&lt;/span&gt;&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;There is no de jure capital but the de facto capital and seat of the federal authorities is Bern.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;False&lt;/li&gt; &lt;li&gt;False&lt;/li&gt; &lt;li&gt;False&lt;/li&gt; &lt;li&gt;True&lt;/li&gt; &lt;li&gt;False&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;What is the seat of the federal authorities in Switzerland (i.e., the de facto capital)?&lt;/p&gt; &lt;div id=&quot;webex-035498182b29dd6d42a64083d1ae284a&quot; class=&quot;webex-radiogroup&quot; data-answer=&quot;awMZBBUIHQgeU28=&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;035498182b29dd6d42a64083d1ae284a&quot; /&gt;&lt;span&gt;Lausanne&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;035498182b29dd6d42a64083d1ae284a&quot; /&gt;&lt;span&gt;Basel&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;035498182b29dd6d42a64083d1ae284a&quot; /&gt;&lt;span&gt;Geneva&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;035498182b29dd6d42a64083d1ae284a&quot; /&gt;&lt;span&gt;St. Gallen&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;035498182b29dd6d42a64083d1ae284a&quot; /&gt;&lt;span&gt;Bern&lt;/span&gt;&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;There is no de jure capital but the de facto capital and seat of the federal authorities is Bern.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;False&lt;/li&gt; &lt;li&gt;False&lt;/li&gt; &lt;li&gt;False&lt;/li&gt; &lt;li&gt;False&lt;/li&gt; &lt;li&gt;True&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;What is the seat of the federal authorities in Switzerland (i.e., the de facto capital)?&lt;/p&gt; &lt;div id=&quot;webex-f923ebd56cf2d41b7d47c4541a43212c&quot; class=&quot;webex-radiogroup&quot; data-answer=&quot;PQgeA0lSSAUaUzs=&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;f923ebd56cf2d41b7d47c4541a43212c&quot; /&gt;&lt;span&gt;Bern&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;f923ebd56cf2d41b7d47c4541a43212c&quot; /&gt;&lt;span&gt;Geneva&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;f923ebd56cf2d41b7d47c4541a43212c&quot; /&gt;&lt;span&gt;St. Gallen&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;f923ebd56cf2d41b7d47c4541a43212c&quot; /&gt;&lt;span&gt;Basel&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; autocomplete=&quot;off&quot; name=&quot;f923ebd56cf2d41b7d47c4541a43212c&quot; /&gt;&lt;span&gt;Vaduz&lt;/span&gt;&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;There is no de jure capital but the de facto capital and seat of the federal authorities is Bern.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;True&lt;/li&gt; &lt;li&gt;False&lt;/li&gt; &lt;li&gt;False&lt;/li&gt; &lt;li&gt;False&lt;/li&gt; &lt;li&gt;False&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-group&quot;&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;What is the derivative of &lt;span class=&quot;math inline&quot;&gt;\(f(x) = x^{2} e^{3.2 x}\)&lt;/span&gt;, evaluated at &lt;span class=&quot;math inline&quot;&gt;\(x = 0.59\)&lt;/span&gt;?&lt;/p&gt; &lt;p&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-e13e2e39011b0214bd80e937bd1cf564&quot; data-tol=&quot;0.01&quot; size=&quot;20&quot; data-answer=&quot;PhMCUBxUBhtt&quot; /&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;Using the product rule for &lt;span class=&quot;math inline&quot;&gt;\(f(x) = g(x) \cdot h(x)\)&lt;/span&gt;, where &lt;span class=&quot;math inline&quot;&gt;\(g(x) := x^{2}\)&lt;/span&gt; and &lt;span class=&quot;math inline&quot;&gt;\(h(x) := e^{3.2 x}\)&lt;/span&gt;, we obtain &lt;span class=&quot;math display&quot;&gt;\[ \begin{aligned} f&amp;#39;(x) &amp;amp;= [g(x) \cdot h(x)]&amp;#39; = g&amp;#39;(x) \cdot h(x) + g(x) \cdot h&amp;#39;(x) \\ &amp;amp;= 2 x^{2 - 1} \cdot e^{3.2 x} + x^{2} \cdot e^{3.2 x} \cdot 3.2 \\ &amp;amp;= e^{3.2 x} \cdot(2 x^1 + 3.2 x^{2}) \\ &amp;amp;= e^{3.2 x} \cdot x^1 \cdot (2 + 3.2 x). \end{aligned} \]&lt;/span&gt; Evaluated at &lt;span class=&quot;math inline&quot;&gt;\(x = 0.59\)&lt;/span&gt;, the answer is &lt;span class=&quot;math display&quot;&gt;\[ e^{3.2 \cdot 0.59} \cdot 0.59^1 \cdot (2 + 3.2 \cdot 0.59) = 15.153964. \]&lt;/span&gt; Thus, rounded to two digits we have &lt;span class=&quot;math inline&quot;&gt;\(f&amp;#39;(0.59) = 15.15\)&lt;/span&gt;.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;What is the derivative of &lt;span class=&quot;math inline&quot;&gt;\(f(x) = x^{4} e^{3.5 x}\)&lt;/span&gt;, evaluated at &lt;span class=&quot;math inline&quot;&gt;\(x = 0.65\)&lt;/span&gt;?&lt;/p&gt; &lt;p&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-1a40d1cfe7fef8cba3bf072454cf89a9&quot; data-tol=&quot;0.01&quot; size=&quot;20&quot; data-answer=&quot;akMFBkoGVUQ4&quot; /&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;Using the product rule for &lt;span class=&quot;math inline&quot;&gt;\(f(x) = g(x) \cdot h(x)\)&lt;/span&gt;, where &lt;span class=&quot;math inline&quot;&gt;\(g(x) := x^{4}\)&lt;/span&gt; and &lt;span class=&quot;math inline&quot;&gt;\(h(x) := e^{3.5 x}\)&lt;/span&gt;, we obtain &lt;span class=&quot;math display&quot;&gt;\[ \begin{aligned} f&amp;#39;(x) &amp;amp;= [g(x) \cdot h(x)]&amp;#39; = g&amp;#39;(x) \cdot h(x) + g(x) \cdot h&amp;#39;(x) \\ &amp;amp;= 4 x^{4 - 1} \cdot e^{3.5 x} + x^{4} \cdot e^{3.5 x} \cdot 3.5 \\ &amp;amp;= e^{3.5 x} \cdot(4 x^3 + 3.5 x^{4}) \\ &amp;amp;= e^{3.5 x} \cdot x^3 \cdot (4 + 3.5 x). \end{aligned} \]&lt;/span&gt; Evaluated at &lt;span class=&quot;math inline&quot;&gt;\(x = 0.65\)&lt;/span&gt;, the answer is &lt;span class=&quot;math display&quot;&gt;\[ e^{3.5 \cdot 0.65} \cdot 0.65^3 \cdot (4 + 3.5 \cdot 0.65) = 16.763849. \]&lt;/span&gt; Thus, rounded to two digits we have &lt;span class=&quot;math inline&quot;&gt;\(f&amp;#39;(0.65) = 16.76\)&lt;/span&gt;.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;What is the derivative of &lt;span class=&quot;math inline&quot;&gt;\(f(x) = x^{7} e^{2.8 x}\)&lt;/span&gt;, evaluated at &lt;span class=&quot;math inline&quot;&gt;\(x = 0.72\)&lt;/span&gt;?&lt;/p&gt; &lt;p&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-ed526c052e45fc503236adfda2f5c2a3&quot; data-tol=&quot;0.01&quot; size=&quot;20&quot; data-answer=&quot;PkYMHAJQEmg=&quot; /&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;Using the product rule for &lt;span class=&quot;math inline&quot;&gt;\(f(x) = g(x) \cdot h(x)\)&lt;/span&gt;, where &lt;span class=&quot;math inline&quot;&gt;\(g(x) := x^{7}\)&lt;/span&gt; and &lt;span class=&quot;math inline&quot;&gt;\(h(x) := e^{2.8 x}\)&lt;/span&gt;, we obtain &lt;span class=&quot;math display&quot;&gt;\[ \begin{aligned} f&amp;#39;(x) &amp;amp;= [g(x) \cdot h(x)]&amp;#39; = g&amp;#39;(x) \cdot h(x) + g(x) \cdot h&amp;#39;(x) \\ &amp;amp;= 7 x^{7 - 1} \cdot e^{2.8 x} + x^{7} \cdot e^{2.8 x} \cdot 2.8 \\ &amp;amp;= e^{2.8 x} \cdot(7 x^6 + 2.8 x^{7}) \\ &amp;amp;= e^{2.8 x} \cdot x^6 \cdot (7 + 2.8 x). \end{aligned} \]&lt;/span&gt; Evaluated at &lt;span class=&quot;math inline&quot;&gt;\(x = 0.72\)&lt;/span&gt;, the answer is &lt;span class=&quot;math display&quot;&gt;\[ e^{2.8 \cdot 0.72} \cdot 0.72^6 \cdot (7 + 2.8 \cdot 0.72) = 9.430757. \]&lt;/span&gt; Thus, rounded to two digits we have &lt;span class=&quot;math inline&quot;&gt;\(f&amp;#39;(0.72) = 9.43\)&lt;/span&gt;.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;In addition to the question and the interaction element, there are three buttons providing the following functionality.&lt;/p&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th style=&quot;text-align: center&quot;&gt;Button&lt;/th&gt; &lt;th style=&quot;text-align: left&quot;&gt;Function&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td style=&quot;text-align: center&quot;&gt;&lt;b&gt;✓&lt;/b&gt;&lt;/td&gt; &lt;td style=&quot;text-align: left&quot;&gt;Check the answer and display whether it is correct or not. When clicked, the symbol is toggled and &lt;b&gt;↰&lt;/b&gt; is displayed, which can be clicked to hide the solution again.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style=&quot;text-align: center&quot;&gt;&lt;b&gt;?&lt;/b&gt;&lt;/td&gt; &lt;td style=&quot;text-align: left&quot;&gt;Display the full correct solution explanation.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style=&quot;text-align: center&quot;&gt;&lt;b&gt;↺&lt;/b&gt;&lt;/td&gt; &lt;td style=&quot;text-align: left&quot;&gt;Switch to the next question.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Inclusion of the solution explanation is optional and the next question button is only displayed if there is more than one random variation of a question. The icons and mouseover text can also be adapted (see below).&lt;/p&gt; &lt;p&gt;To set up a similar standalone file with these two exercises, the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2webquiz()&lt;/code&gt; interface from the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; package can be used:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;library(&quot;exams2forms&quot;) exams2webquiz(c(&quot;swisscapital.Rmd&quot;, &quot;deriv.Rmd&quot;), n = 3)&lt;/code&gt;&lt;/pre&gt; &lt;h2 id=&quot;more-elaborate-examples&quot;&gt;More elaborate examples&lt;/h2&gt; &lt;p&gt;To showcase some more exercise types, the following examples from the R/exams package are used: &lt;a href=&quot;https://www.R-exams.org/templates/capitals/&quot;&gt;capitals&lt;/a&gt; (multiple-choice), &lt;a href=&quot;https://www.R-exams.org/templates/function/&quot;&gt;function&lt;/a&gt; (string/text), &lt;a href=&quot;https://www.R-exams.org/templates/fruit/&quot;&gt;fruit&lt;/a&gt; (numeric with table and images), &lt;a href=&quot;https://www.R-exams.org/templates/lm2/&quot;&gt;lm2&lt;/a&gt; (cloze containing string, multiple-choice, numeric, and single-choice elements as well as an embedded data file).&lt;/p&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;Which of the following cities are the capital of the corresponding country?&lt;/p&gt; &lt;div id=&quot;webex-276af0ed73799cc27bf1a3e7c76cb217&quot; class=&quot;webex-checkboxgroup&quot; data-answer=&quot;aQYaUEoASVUbA2o=&quot;&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;276af0ed73799cc27bf1a3e7c76cb217&quot; /&gt;&lt;span&gt;Tokyo (Japan)&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;276af0ed73799cc27bf1a3e7c76cb217&quot; /&gt;&lt;span&gt;Warsaw (Poland)&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;276af0ed73799cc27bf1a3e7c76cb217&quot; /&gt;&lt;span&gt;Auckland (New Zealand)&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;276af0ed73799cc27bf1a3e7c76cb217&quot; /&gt;&lt;span&gt;Astana (Kazakhstan)&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;276af0ed73799cc27bf1a3e7c76cb217&quot; /&gt;&lt;span&gt;Zürich (Switzerland)&lt;/span&gt;&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;ul&gt; &lt;li&gt;True. Tokyo is the capital of Japan.&lt;/li&gt; &lt;li&gt;True. Warsaw is the capital of Poland.&lt;/li&gt; &lt;li&gt;False. The capital of New Zealand is Wellington.&lt;/li&gt; &lt;li&gt;True. Astana is the capital of Kazakhstan.&lt;/li&gt; &lt;li&gt;False. The de facto capital of Switzerland is Bern.&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;What is the name of the R function for negative binomial regression?&lt;/p&gt; &lt;p&gt;&lt;input class=&quot;webex-solveme&quot; id=&quot;webex-4017154663a3874f9409bd270f900f66&quot; size=&quot;20&quot; data-answer=&quot;bxJWW1wbWlQUbg==&quot; /&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;&lt;code&gt;glm.nb&lt;/code&gt; is the R function for negative binomial regression. See &lt;code&gt;?glm.nb&lt;/code&gt; for the corresponding manual page.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;Given the following information:&lt;/p&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/banana.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;banana&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/orange.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;orange&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/orange.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;orange&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;=&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(143\)&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/banana.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;banana&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/pineapple.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;pineapple&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/banana.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;banana&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;=&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(437\)&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/pineapple.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;pineapple&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/orange.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;orange&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/orange.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;orange&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;=&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(433\)&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;Compute:&lt;/p&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/banana.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;banana&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/orange.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;orange&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/pineapple.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;pineapple&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;=&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(\text{?}\)&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;&lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-a7f4f6969561502620fa6cdfdd3bbac0&quot; data-tol=&quot;0&quot; size=&quot;20&quot; data-answer=&quot;OhVSB1MUZA==&quot; /&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;The information provided can be interpreted as the price for three fruit baskets with different combinations of the three fruits. This corresponds to a system of linear equations where the price of the three fruits is the vector of unknowns &lt;span class=&quot;math inline&quot;&gt;\(x\)&lt;/span&gt;:&lt;/p&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td align=&quot;right&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(x_1 =\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/banana.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;banana&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(x_2 =\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/orange.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;orange&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(x_3 =\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;left&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/pineapple.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;pineapple&quot; /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;The system of linear equations is then: &lt;span class=&quot;math display&quot;&gt;\[ \begin{aligned} \left( \begin{array}{rrr} 1 &amp;amp; 2 &amp;amp; 0 \\ 2 &amp;amp; 0 &amp;amp; 1 \\ 0 &amp;amp; 2 &amp;amp; 1 \end{array} \right) \cdot \left( \begin{array}{r} x_1 \\ x_2 \\ x_3 \end{array} \right) &amp;amp; = &amp;amp; \left( \begin{array}{r} 143 \\ 437 \\ 433 \end{array} \right) \end{aligned} \]&lt;/span&gt; This can be solved using any solution algorithm, e.g., elimination: &lt;span class=&quot;math display&quot;&gt;\[ x_1 = 49, \, x_2 = 47, \, x_3 = 339. \]&lt;/span&gt; Based on the three prices for the different fruits it is straightforward to compute the total price of the fourth fruit basket via:&lt;/p&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/banana.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;banana&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/orange.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;orange&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/pineapple.png&quot; style=&quot;width:0.85cm&quot; alt=&quot;pineapple&quot; /&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;=&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(x_1\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(x_2\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(x_3\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;=&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(49\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(47\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(+\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(339\)&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;=&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;&lt;span class=&quot;math inline&quot;&gt;\(435\)&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;webex-question&quot;&gt; &lt;div class=&quot;webex-check webex-box&quot;&gt; &lt;p&gt;&lt;strong&gt;Theory:&lt;/strong&gt; Consider a linear regression of &lt;code&gt;y&lt;/code&gt; on &lt;code&gt;x&lt;/code&gt;. It is usually estimated with which estimation technique (three-letter abbreviation)?&lt;/p&gt; &lt;p&gt;&lt;input class=&quot;webex-solveme&quot; id=&quot;webex-06e7a7b0b29a0cad7f5cbe781af531db&quot; size=&quot;20&quot; data-answer=&quot;axQqezIVPw==&quot; /&gt;&lt;/p&gt; &lt;p&gt;This estimator yields the best linear unbiased estimator (BLUE) under the assumptions of the Gauss-Markov theorem. Which of the following properties are required for the errors of the linear regression model under these assumptions?&lt;/p&gt; &lt;div id=&quot;webex-6d7d0d00ecb5475439b49b88aa384596&quot; class=&quot;webex-checkboxgroup&quot; data-answer=&quot;bVQbVRxUHABJUj8=&quot;&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;6d7d0d00ecb5475439b49b88aa384596&quot; /&gt;&lt;span&gt;independent&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;6d7d0d00ecb5475439b49b88aa384596&quot; /&gt;&lt;span&gt;zero expectation&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;6d7d0d00ecb5475439b49b88aa384596&quot; /&gt;&lt;span&gt;normally distributed&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;6d7d0d00ecb5475439b49b88aa384596&quot; /&gt;&lt;span&gt;identically distributed&lt;/span&gt;&lt;/label&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; autocomplete=&quot;off&quot; name=&quot;6d7d0d00ecb5475439b49b88aa384596&quot; /&gt;&lt;span&gt;homoscedastic&lt;/span&gt;&lt;/label&gt; &lt;/div&gt; &lt;p&gt;&lt;strong&gt;Application:&lt;/strong&gt; Using the data provided in &lt;a href=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms/linreg.csv&quot;&gt;linreg.csv&lt;/a&gt; estimate a linear regression of &lt;code&gt;y&lt;/code&gt; on &lt;code&gt;x&lt;/code&gt;. What are the estimated parameters?&lt;/p&gt; &lt;p&gt;Intercept: &lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-096e7ffadba21efa0d8db22285a5b144&quot; data-tol=&quot;0.01&quot; size=&quot;20&quot; data-answer=&quot;axsGSwdVV0M5&quot; /&gt;&lt;/p&gt; &lt;p&gt;Slope: &lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-44260a8f5bdcbe01a30bcdce26ec144c&quot; data-tol=&quot;0.01&quot; size=&quot;20&quot; data-answer=&quot;bxYfBh5RC1cXPw==&quot; /&gt;&lt;/p&gt; &lt;p&gt;In terms of significance at 5% level:&lt;/p&gt; &lt;p&gt;&lt;select class=&quot;webex-select&quot; id=&quot;webex-6dad47bafe2af1efebc9d30e443ec44d&quot; data-answer=&quot;bVVNVBgHPw==&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;&lt;code&gt;x&lt;/code&gt; and &lt;code&gt;y&lt;/code&gt; are not significantly correlated&lt;/option&gt;&lt;option&gt;&lt;code&gt;y&lt;/code&gt; increases significantly with &lt;code&gt;x&lt;/code&gt;&lt;/option&gt;&lt;option&gt;&lt;code&gt;y&lt;/code&gt; decreases significantly with &lt;code&gt;x&lt;/code&gt;&lt;/option&gt;&lt;/select&gt;&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;webex-solution&quot;&gt; &lt;p&gt;&lt;strong&gt;Theory:&lt;/strong&gt; Linear regression models are typically estimated by ordinary least squares (OLS). The Gauss-Markov theorem establishes certain optimality properties: Namely, if the errors have expectation zero, constant variance (homoscedastic), no autocorrelation and the regressors are exogenous and not linearly dependent, the OLS estimator is the best linear unbiased estimator (BLUE).&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Application:&lt;/strong&gt; The estimated coefficients along with their significances are reported in the summary of the fitted regression model, showing that &lt;code&gt;x&lt;/code&gt; and &lt;code&gt;y&lt;/code&gt; are not significantly correlated (at 5% level).&lt;/p&gt; &lt;pre&gt;&lt;code&gt; Call: lm(formula = y ~ x, data = d) Residuals: Min 1Q Median 3Q Max -0.59846 -0.17142 -0.01458 0.13740 0.68566 Coefficients: Estimate Std. Error t value Pr(&amp;gt;|t|) (Intercept) 0.03055 0.02507 1.219 0.226 x -0.03080 0.04702 -0.655 0.514 Residual standard error: 0.2504 on 98 degrees of freedom Multiple R-squared: 0.00436, Adjusted R-squared: -0.005799 F-statistic: 0.4292 on 1 and 98 DF, p-value: 0.5139 &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt; The analysis can be replicated in R using the following code.&lt;/p&gt; &lt;pre&gt;&lt;code&gt;## data d &amp;lt;- read.csv(&amp;quot;linreg.csv&amp;quot;) ## regression m &amp;lt;- lm(y ~ x, data = d) summary(m) ## visualization plot(y ~ x, data = d) abline(m)&lt;/code&gt;&lt;/pre&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Again, the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2webquiz()&lt;/code&gt; function can be used to set up a standalone file based on the same exercises:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;exams2webquiz(c(&quot;capitals.Rmd&quot;, &quot;function.Rmd&quot;, &quot;fruit.Rmd&quot;, &quot;lm2.Rmd&quot;))&lt;/code&gt;&lt;/pre&gt; &lt;h2 id=&quot;building-blocks&quot;&gt;Building blocks&lt;/h2&gt; &lt;p&gt;To accomplish the functionality demonstrated above, the package provides the following contents:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms()&lt;/code&gt;: Main workhorse function from the package. Like other &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2xyz()&lt;/code&gt; interfaces this takes a vector or list of exercise files and returns Markdown text, including HTML snippets, than can be included in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rmarkdown&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;quarto&lt;/code&gt; documents. This includes questions, suitable interactions for the different types of answers (with correct solutions also embedded in the HTML), and optionally full solution explanations.&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;webex.css&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;webex.js&lt;/code&gt;: CSS (Cascading Style Sheets) and Javascript files shipped within the package and providing the code necessary for the exercise and quiz display and processing the different types of interactions.&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;webquiz()&lt;/code&gt;: Small wrapper function that creates a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;knitr::html_document()&lt;/code&gt; but includes the CSS and Javascript files above.&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2webquiz()&lt;/code&gt;: Convenience interface that combines all of the above elements. It sets up a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;webquiz()&lt;/code&gt; document in which &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms()&lt;/code&gt; is used to embed the specified exercises, calls &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rmarkdown::render()&lt;/code&gt; to process it, and by default displays it in the browser. This is most useful for quickly trying out how R/exams exercises can work in HTML documents.&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;forms_num()&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;forms_string()&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;forms_schoice()&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;forms_mchoice()&lt;/code&gt;: Helper functions for just embedding the user interactions for the different types of exercises. Typically not called directly by the user.&lt;/li&gt; &lt;/ul&gt; &lt;h2 id=&quot;demo-files&quot;&gt;Demo files&lt;/h2&gt; &lt;p&gt;While &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2webquiz()&lt;/code&gt; is convenient for quickly setting up an HTML document containing certain exercises, further customizations are typicallly needed for more elaborate documents. To demonstrate how this works the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; package provides two demo &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rmarkdown&lt;/code&gt; files which can also be downloaded here:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms//quiz.Rmd&quot;&gt;quiz.Rmd&lt;/a&gt;.&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms//questions.Rmd&quot;&gt;questions.Rmd&lt;/a&gt;.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;The first file &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;quiz.Rmd&lt;/code&gt; renders a number of different exercises into a quiz using a single &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms()&lt;/code&gt; call, indicating that the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;results&lt;/code&gt; should be included &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;asis&quot;&lt;/code&gt;:&lt;/p&gt; &lt;pre&gt;&lt;code&gt; --- title: &quot;R/exams quiz&quot; output: exams2forms::webquiz --- ```{r setup, include = FALSE} ## package and list of various exercises library(&quot;exams2forms&quot;) exm &amp;lt;- list( c(&quot;swisscapital.Rmd&quot;, &quot;capitals.Rmd&quot;), &quot;deriv.Rnw&quot;, &quot;deriv2.Rnw&quot;, &quot;fruit.Rmd&quot;, &quot;boxplots.Rmd&quot;, &quot;ttest.Rmd&quot;, &quot;function.Rmd&quot;, &quot;lm2.Rnw&quot;, &quot;fourfold2.Rmd&quot; ) ``` ```{r quiz, echo = FALSE, message = FALSE, results = &quot;asis&quot;} exams2forms(exm, n = 3) ``` &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;questions.Rmd&lt;/code&gt; file looks similar but contains different sections, each with a single question set up via &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms()&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Both files can be rendered to HTML via &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rmarkdown::render()&lt;/code&gt; or by clicking the knit button after opening the files in RStudio etc.&lt;/p&gt; &lt;h2 id=&quot;setup-and-customization&quot;&gt;Setup and customization&lt;/h2&gt; &lt;p&gt;When setting up a more elaborate document or even a full webpage or online book with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rmarkdown&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;quarto&lt;/code&gt;, then the simple &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;webquiz()&lt;/code&gt; HTML document provided by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; is probably not sufficient. In this case, it is best to take the CSS and Javascript files from the package or download them here:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms//webex.css&quot;&gt;webex.css&lt;/a&gt;.&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2024-11-07-exams2forms//webex.js&quot;&gt;webex.js&lt;/a&gt;.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;The files can then be placed in the same folder as the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rmarkdown&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;quarto&lt;/code&gt; project. They can also be adapted relatively easily by changing the definitions of colors, icons, text, etc. in the first few lines of each file.&lt;/p&gt; &lt;p&gt;To include the CSS and Javascript in an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rmarkown&lt;/code&gt; project, the YAML header should include:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;output: html_document: css: webex.css includes: after_body: webex.js&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Similarly, in a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;quarto&lt;/code&gt; project the YAML header or the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_quarto.yml&lt;/code&gt; file should include:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;prettyprint &quot;&gt;format: html: css: webex.css include-after-body: webex.js&lt;/code&gt;&lt;/pre&gt; &lt;h2 id=&quot;standalone-interaction-forms&quot;&gt;Standalone interaction forms&lt;/h2&gt; &lt;p&gt;While it is not the primary focus of the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2forms&lt;/code&gt; package, it is also possible to directly include interaction forms in documents like in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;webexercises&lt;/code&gt; package, i.e., without setting up full R/exams exercises. A few simple examples are inlcuded below for numeric, text, single-choice, and multiple-choice interactions (both using drop-down interactions here), respectively.&lt;/p&gt; &lt;p&gt;What is the answer to the ultimate question of life, the universe, and everything? &lt;input class=&quot;webex-solveme nospaces&quot; id=&quot;webex-7a351c8742063dd330872151bfd2cd55&quot; data-tol=&quot;0&quot; size=&quot;10&quot; data-answer=&quot;bEMHBxM+&quot; /&gt;&lt;/p&gt; &lt;p&gt;Which superhero is the secret identity of Bruce Wayne? &lt;input class=&quot;webex-solveme ignorecase nospaces&quot; id=&quot;webex-bd9ee34babe4af3e6dbae240b7992efd&quot; size=&quot;20&quot; data-answer=&quot;OUZbBBFeVQxDPw==&quot; /&gt;&lt;/p&gt; &lt;p&gt;Which of the following villains is &lt;strong&gt;not&lt;/strong&gt; an adversary of Batman? &lt;select class=&quot;webex-select&quot; id=&quot;webex-973ae8a6f3ed0d4dde83cfaf1479fce9&quot; data-answer=&quot;YgcfUUkJTQY7&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;Bane&lt;/option&gt;&lt;option&gt;Riddler&lt;/option&gt;&lt;option&gt;Thanos&lt;/option&gt;&lt;option&gt;Poison Ivy&lt;/option&gt;&lt;/select&gt;&lt;/p&gt; &lt;p&gt;Which of the following characters are romantic interests of Spider-Man?&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;select class=&quot;webex-select&quot; id=&quot;webex-2e3afe7a47832cc8ddba6e1b92fb2152&quot; data-answer=&quot;aVQfUTs=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;TRUE&lt;/option&gt;&lt;option&gt;FALSE&lt;/option&gt;&lt;/select&gt; Mary Jane Watson&lt;/li&gt; &lt;li&gt;&lt;select class=&quot;webex-select&quot; id=&quot;webex-63b332c566d6e8d260777b380e99bdb6&quot; data-answer=&quot;bQNOAm4=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;TRUE&lt;/option&gt;&lt;option&gt;FALSE&lt;/option&gt;&lt;/select&gt; Pepper Potts&lt;/li&gt; &lt;li&gt;&lt;select class=&quot;webex-select&quot; id=&quot;webex-6bc59bccb58caf39dc0706fb405297ab&quot; data-answer=&quot;bVJPBGQ=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;TRUE&lt;/option&gt;&lt;option&gt;FALSE&lt;/option&gt;&lt;/select&gt; Selina Kyle&lt;/li&gt; &lt;li&gt;&lt;select class=&quot;webex-select&quot; id=&quot;webex-193e38302bc71f239ce9414d9d1c80f9&quot; data-answer=&quot;aggfVW4=&quot;&gt;&lt;option value=&quot;blank&quot;&gt;&lt;/option&gt;&lt;option&gt;TRUE&lt;/option&gt;&lt;option&gt;FALSE&lt;/option&gt;&lt;/select&gt; Gwen Stacy&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;The corresponding code snippets included in the inline code chunks are:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;forms_num(42, width = 10)&lt;/code&gt;&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;forms_string(&quot;Batman&quot;, width = 20, usecase = FALSE)&lt;/code&gt;&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;forms_schoice(c(&quot;Bane&quot;, &quot;Riddler&quot;, &quot;Thanos&quot;, &quot;Poison Ivy&quot;), c(FALSE, FALSE, TRUE, FALSE), display = &quot;dropdown&quot;)&lt;/code&gt;&lt;/li&gt; &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;forms_mchoice(c(&quot;Mary Jane Watson&quot;, &quot;Pepper Potts&quot;, &quot;Selina Kyle&quot;, &quot;Gwen Stacy&quot;), c(TRUE, FALSE, FALSE, TRUE), display = &quot;dropdown&quot;)&lt;/code&gt;&lt;/li&gt; &lt;/ul&gt;</content>
			
				<category term="tutorials" />
			
			
				<category term="webexercises" />
			
				<category term="tutorial" />
			
				<category term="e-learning" />
			
				<category term="R" />
			
			<published>2024-11-07T00:00:00+01:00</published>
		</entry>
	
    
    
		<entry>
			<id>https://www.R-exams.org/general/uibk_stem/</id>
			<title>Mind the Gap: Using R/exams to Ease the Transition into STEM Studies</title>
			<link href="https://www.R-exams.org/general/uibk_stem/" rel="alternate" type="text/html" title="Mind the Gap: Using R/exams to Ease the Transition into STEM Studies" />
			<updated>2024-06-17T00:00:00+02:00</updated>
			
				
				<author>
					
						<name>Achim Zeileis</name>
					
					
						<email>Achim.Zeileis@R-project.org</email>
					
					
						<uri>https://eeecon.uibk.ac.at/~zeileis/</uri>
					
				</author>
			
			<summary>Ideas and experiences from an award-winning bridging course in mathematics at Universität Innsbruck, whose teaching and examination culture is guided by learning outcomes and extensively uses R/exams.</summary>
			<content type="html" xml:base="https://www.R-exams.org/general/uibk_stem/">&lt;p&gt;Ideas and experiences from an award-winning bridging course in mathematics at Universität Innsbruck, whose teaching and examination culture is guided by learning outcomes and extensively uses R/exams.&lt;/p&gt; &lt;p&gt;&lt;img alt=&quot;Mind the Gap: Using R/exams to Ease the Transition into STEM Studies&quot; src=&quot;https://www.R-exams.org/images/uibk_stem.title.png&quot; /&gt;&lt;/p&gt; &lt;p&gt;Guest post by &lt;a href=&quot;https://www.uibk.ac.at/en/ifd/mse/team/pia-tscholl/&quot;&gt;Pia Tscholl&lt;/a&gt; &amp;amp; &lt;a href=&quot;https://at.linkedin.com/in/lisa-schlosser-bbb311186&quot;&gt;Lisa Schlosser&lt;/a&gt; (Universität Innsbruck).&lt;/p&gt; &lt;h2 id=&quot;motivation&quot;&gt;Motivation&lt;/h2&gt; &lt;p&gt;Universities in German-speaking countries face above-average dropout rates in STEM (Science, Technology, Engineering, Mathematics) subjects. These high dropout rates are worrying, as the demand for qualified workers in these fields exceeds the available supply. Especially deficient mathematical knowledge plays a major role during the dropout process in STEM fields. For this reason, the majority of the German-speaking universities offer mathematical remedial or bridging courses at the beginning of STEM degree programs. However, researchers criticize that many remedial courses do not offer audience-appropriate assessments to efficiently diagnose mathematical deficits. Echoing this critique, a team at the University of Innsbruck has developed a mathematical self-assessment, which is implemented via &lt;a href=&quot;https://www.R-exams.org/&quot;&gt;R/exams&lt;/a&gt; and made available to participants of the mathematical remedial course via the university’s learning management system &lt;a href=&quot;https://www.OpenOlat.com/&quot;&gt;OpenOlat&lt;/a&gt;. The implementation with R/exams offers the advantage of large test sets with (potentially) randomized tasks which can be easily modified and evaluated in an automated manner. Due to the automated evaluation, the self-assessment can be used in courses with a large number of participants. Moreover, the created assessment can be easily exported to other formats (pdf, moodle, …).&lt;/p&gt; &lt;h2 id=&quot;creating-task-lists-by-content-area&quot;&gt;Creating task lists by content area&lt;/h2&gt; &lt;p&gt;The self-assessment covers the following content areas (with abbreviations based on the German titles):&lt;/p&gt; &lt;ul&gt; &lt;li&gt;AK: General mathematical competencies.&lt;/li&gt; &lt;li&gt;ZF: Numbers and functions.&lt;/li&gt; &lt;li&gt;GU: Equations and inequalities.&lt;/li&gt; &lt;li&gt;KV: Coordinates and vector geometry.&lt;/li&gt; &lt;li&gt;GT: Geometry and trigonometry.&lt;/li&gt; &lt;li&gt;DR: Differential calculus.&lt;/li&gt; &lt;li&gt;IR: Integral calculus.&lt;/li&gt; &lt;li&gt;SW: Statistics and probability.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;A separate test set with a certain number of R/exams tasks is created for each content area. All tasks are saved in the same folder and named as follows: &lt;em&gt;“ContentArea_AscendingNumber.Rmd”&lt;/em&gt;, e.g. the first task of the content area ZF is named &lt;em&gt;ZF_001.Rmd&lt;/em&gt;, the second &lt;em&gt;ZF_002.Rmd&lt;/em&gt; and so on. Consistent naming makes it possible to quickly create task lists by content area:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;testset_ZF &amp;lt;- list.files(path = &quot;wd/task&quot;, pattern = &quot;^ZF_[0-9]+\\.Rmd$&quot;) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;where &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;wd&lt;/code&gt; is your current working directory or the path where your task folder is located and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;task&lt;/code&gt; is the name of the folder where the tasks are stored. The argument &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pattern&lt;/code&gt; is a regular expression starting with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ZF&lt;/code&gt; (or another content area) followed by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_&lt;/code&gt;, some digits and ending with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.Rmd&lt;/code&gt;. Subsequently, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;testset_ZF&lt;/code&gt; contains the ZF task list to be exported to OpenOlat.&lt;/p&gt; &lt;h2 id=&quot;example-defining-a-task&quot;&gt;Example: Defining a task&lt;/h2&gt; &lt;p&gt;As an example, the code for a specific randomized task is presented below. It asks the participants to compare two randomly selected fractions to check which one is greater or whether they are equal. In addition to the code being shown below (in R/Markdown format) it can also be downloaded in both R/Markdown and R/LaTeX format as &lt;a href=&quot;https://www.R-exams.org/assets/posts/2024-06-17-uibk_stem/ZF_071.Rmd&quot;&gt;ZF_071.Rmd&lt;/a&gt; or &lt;a href=&quot;https://www.R-exams.org/assets/posts/2024-06-17-uibk_stem/ZF_071.Rnw&quot;&gt;ZF_071.Rnw&lt;/a&gt;, respectively.&lt;/p&gt; &lt;pre&gt; &lt;code&gt;```{r, include = FALSE} ## Generate two random fractions based on numbers from 1 to 10 f1 &amp;lt;- sample(1:10, 2, replace = FALSE) f2 &amp;lt;- sample(1:10, 2, replace = FALSE) a &amp;lt;- f1[1] b &amp;lt;- f1[2] c &amp;lt;- f2[1] d &amp;lt;- f2[2] ## Save random fractions a/b and c/d as character ## (don&apos;t forget escaping \\ within the math mode) fr1 &amp;lt;- paste0(&quot;$\\frac{&quot;, a, &quot;}{&quot;, b, &quot;}$&quot;) fr2 &amp;lt;- paste0(&quot;$\\frac{&quot;, c, &quot;}{&quot;, d, &quot;}$&quot;) ## Possible answers answers &amp;lt;- c( paste(fr1, &quot;is greater than&quot;, fr2), paste(fr2, &quot;is greater than&quot;, fr1), &quot;Both fractions are equal&quot; ) ## Correct solution sol &amp;lt;- c(0, 0, 0) if(a/b &amp;gt; c/d) { sol[1] &amp;lt;- 1 } else if(c/d &amp;gt; a/b) { sol[2] &amp;lt;- 1 } else { sol[3] &amp;lt;- 1 } ## Explanation k &amp;lt;- answers[as.logical(sol)] eq &amp;lt;- c(&quot; &amp;gt; &quot;, &quot; &amp;lt; &quot;, &quot; = &quot;)[as.logical(sol)] explanation &amp;lt;- paste0(k, &quot; since $&quot;, a, &quot; \\cdot &quot;, d, eq, b, &quot; \\cdot &quot;, c, &quot;$.&quot;) ``` Question ======== Which of these numbers is greater: `r fr1` or `r fr2`? ```{r, echo = FALSE, results = &quot;asis&quot;} answerlist(answers, markup = &quot;markdown&quot;) ``` Solution ======== `r explanation` Meta-information ================ exname: Comparing fractions extype: schoice exsolution: `r paste(sol, collapse = &quot;&quot;)`&lt;/code&gt; &lt;/pre&gt; &lt;p&gt;One random version of the exercise is shown below as rendered in an OpenOlat test after entering an incorrect answer:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2024-06-17-uibk_stem/olat_solution.png&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-06-17-uibk_stem/olat_solution.png&quot; alt=&quot;Question displayed in OpenOlat with implemented explanation given after saving the answer&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Further meta-information could be added to the exercise via the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exextra&lt;/code&gt; tags, if needed. For &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;num&lt;/code&gt; questions, the tag &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;extol&lt;/code&gt; defines the tolerance range for numerical solutions. Exercise templates for different task types (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;num&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;mchoice&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;schoice&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cloze&lt;/code&gt;, …) are provided on the R/exams web page at &lt;a href=&quot;https://www.R-exams.org/templates/&quot;&gt;https://www.R-exams.org/templates/&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The elegant aspect of randomized tasks is that students can perform the same test multiple times for the purpose of practice or improved self-assessment. If implemented foresighted like in our example, solutions and explanations are automatically adapted - so there is no additional work for teachers despite many task variations.&lt;/p&gt; &lt;p&gt;The next section will explain how to export such randomized tasks from R/exams to OpenOlat.&lt;/p&gt; &lt;h2 id=&quot;randomized-export-to-openolat&quot;&gt;Randomized export to OpenOlat&lt;/h2&gt; &lt;p&gt;As explained in the previous section, consistent file naming makes it easy to create a list of test files, hereinafter referred to as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;testset_ZF&lt;/code&gt;. The following code exemplifies how such a test set, consisting of several randomized tasks, can be exported from R/exams to OpenOlat.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-{r}&quot;&gt;library(&quot;exams&quot;) # Load R/exams package seed &amp;lt;- 6020 # Select seed, so randomization can be repeated set.seed(seed) # Set seed export_ZF &amp;lt;- exams2openolat( # Function for exporting tasks to OpenOlat edir = &quot;wd/tasks&quot;, # Directory where task files are stored file = testset_ZF, # File names of the tasks n = 20, # Number of randomized versions of the test set name = paste0(&quot;ZF_Testset_seed&quot;, seed), # Remember seed also in file name stitle = &quot;ZF&quot;, # Section title ititle = &quot;Aufgaben&quot;, # Item title solutionswitch = TRUE # Display explanation right after saving the answer ) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Further arguments, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cutvalue&lt;/code&gt; (threshold for passing), &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;navigation&lt;/code&gt; (disabling switching between tasks), and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;duration&lt;/code&gt; (maximum processing time) can individualize the test implementation regarding the needs of the course (see &lt;a href=&quot;https://www.R-exams.org/general/uibk_soilmechanics/&quot;&gt;this blog post&lt;/a&gt; for some practical illustration).&lt;/p&gt; &lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exams2openolat&lt;/code&gt; function creates a zip folder with the chosen name in the current working directory.&lt;/p&gt; &lt;p&gt;Now, you can insert a new &lt;em&gt;Test&lt;/em&gt; element in your OpenOlat course. In the editor mode, it is possible to &lt;em&gt;import&lt;/em&gt; the created zip folder to the &lt;em&gt;Test-Konfiguration&lt;/em&gt; element. At this point, the work is already done - yay! Each time the test is called up, one of the created randomized test sets is selected by OpenOlat. If desired, further settings can be done using the editor mode in OpenOlat, such as displaying the test results after the test has been completed (&lt;em&gt;Testkonfiguration&lt;/em&gt; &amp;gt; &lt;em&gt;Report&lt;/em&gt;), a winner’s podium for the three best (anonymous) participants (&lt;em&gt;HighScore&lt;/em&gt; &amp;gt; &lt;em&gt;Siegertreppchen&lt;/em&gt;), or an automated submission confirmation by E-mail (&lt;em&gt;Email Bestätigung&lt;/em&gt;).&lt;/p&gt; &lt;p&gt;It is noteworthy - since this question occurs often among our students - that decimal input for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;num&lt;/code&gt; questions can be entered in the OpenOlat export with dot or comma.&lt;/p&gt; &lt;h2 id=&quot;results-and-feedback&quot;&gt;Results and feedback&lt;/h2&gt; &lt;p&gt;Once a class or group has finished the self-assessment, various tools provide information on the results. For example, an anonymous ranking showing the achieved number of points of the three best performing participants and a histogram over all point results can provide a first overview on the results.&lt;/p&gt; &lt;p&gt;Moreover, each participant is informed about his/her performance after finishing the assessment for one of the content areas. In particular, the total number of achieved points, the time needed to finish and the number of answered questions is listed. Additionally, each question, the given answer, and the expected answer can be accessed by the participant.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2024-06-17-uibk_stem/olat_ranking.jpg&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-06-17-uibk_stem/olat_ranking.jpg&quot; alt=&quot;(Anonymous) winners ranking in OpenOlat&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://www.R-exams.org/assets/posts/2024-06-17-uibk_stem/olat_feedback.jpg&quot;&gt;&lt;img src=&quot;https://www.R-exams.org/assets/posts/2024-06-17-uibk_stem/olat_feedback.jpg&quot; alt=&quot;Feedback overview after finishing the self-assessment in OpenOlat&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;h2 id=&quot;experience-and-outlook&quot;&gt;Experience and outlook&lt;/h2&gt; &lt;p&gt;A problem that still arises with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;num&lt;/code&gt; tasks is the incorporation of fractions. While they can be properly in the tasks using &lt;a href=&quot;https://www.R-exams.org/tutorials/math/&quot;&gt;mathematical notation&lt;/a&gt;, there is still no convenient way to insert fractions as solutions when completing the test set. As of now, fractions can only be transmitted as decimal numbers, which can be tedious and prone to errors. One possibility would be to implement the numerator and denominator as two &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;num&lt;/code&gt; solution-elements of a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cloze&lt;/code&gt; task in R/exams. However, this would have the disadvantage that reduced or expanded variants of the respective fractions are not recognized as solutions. In this case, the most reduced fraction would have to be requested as a solution, which in turn is again prone to errors. Furthermore, if only the numerator or only the denominator is inserted correctly (and the solution is therefore wrong overall), 50% of the points are still awarded.&lt;/p&gt; &lt;p&gt;Additionally, it would be desirable to provide students with the solutions, including implemented explanations for the tasks, after completing the test. It is currently only possible to display explanations immediately after saving the answer, but not as final feedback.&lt;/p&gt; &lt;p&gt;However, we received primarily positive feedback from students and colleagues regarding the implementation of our mathematics self-assessment using R/exams in OpenOlat.&lt;/p&gt; &lt;p&gt;The concept for this &lt;a href=&quot;https://gutelehre.at/projekt?tx_gutelehre_default[action]=show&amp;amp;tx_gutelehre_default[project]=1851&quot;&gt;Bridging Course Mathematics&lt;/a&gt; even won the Austrian teaching award &lt;a href=&quot;https://gutelehre.at/ars-docendi&quot;&gt;Ars Docendi State Prize 2023&lt;/a&gt;. The photo below shows the entire team Tobias Hell, Elisabeth Hell, Pia Tscholl, and Lisa Schlosser (left to right) being presented with the award by Secretary of Education Martin Polaschek (Photo: Martin Lusser/BMBWF).&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;https://gutelehre.at/fileadmin/user_upload/Dipl.-Ing._Tobias_Hell__BSc_PhD__Mag.a_Elisabeth_Hell_Pia_Tscholl__MEd_Lisa_Schlosser__PhD_c_Martin_Lusser.jpg&quot; alt=&quot;Dipl.-Ing. Tobias Hell, BSc PhD &amp;amp; Mag.a Elisabeth Hell &amp;amp; Pia Tscholl, MEd &amp;amp; Lisa Schlosser, PhD &amp;amp; BM Martin Polaschek (Photo: Martin Lusser/BMBWF)&quot; /&gt;&lt;/p&gt; &lt;p&gt;One advantage of this digitalized self-assessment - in addition to those already mentioned - is the ability to collect data in larger quantities and without further effort. For example, a full PhD position has been realized to evaluate the data collected through the presented self-assessment.&lt;/p&gt;</content>
			
				<category term="general" />
			
			
				<category term="R" />
			
				<category term="exams" />
			
				<category term="exams2openolat" />
			
				<category term="e-learning" />
			
			<published>2024-06-17T00:00:00+02:00</published>
		</entry>
	
</feed>
