| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
<quiz> |
| 4 |
|
| 5 |
<question type="category"> |
| 6 |
<category> |
| 7 |
<text>$course$/top/Fancy Verbatim</text> |
| 8 |
</category> |
| 9 |
</question> |
| 10 |
|
| 11 |
<question type="multichoice"> |
| 12 |
<name format="html"> |
| 13 |
<text><![CDATA[LaTeX]]></text> |
| 14 |
</name> |
| 15 |
<questiontext format="html"> |
| 16 |
<text><![CDATA[<p>Pick up the code decorated with line numbering on both sides. </p>]]></text> |
| 17 |
</questiontext> |
| 18 |
<defaultgrade>1.0</defaultgrade> |
| 19 |
<generalfeedback format="html"><text/></generalfeedback> |
| 20 |
<penalty>0.10</penalty> |
| 21 |
<hidden>0</hidden> |
| 22 |
<single>true</single> |
| 23 |
<shuffleanswers>1</shuffleanswers> |
| 24 |
<answernumbering>abc</answernumbering> |
| 25 |
<answer fraction="0" format="html"> |
| 26 |
<text><![CDATA[<p><PRE style="border-top: thin solid; border-bottom: thin solid"><CODE><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">2</span><mark>% !TEX TS-program = xelatex</mark><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: left; float: right">2</span><BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right"> </span><mark></mark><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: left; float: right"> </span><BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">3</span><mark>\documentclass{article}</mark><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: left; float: right">3</span><BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">4</span><mark>\usepackage[nostamp]{moodle}</mark><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: left; float: right">4</span><BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">5</span><mark>\newif\iffvextra</mark><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: left; float: right">5</span><BR/></CODE></PRE></p>]]></text> |
| 27 |
<feedback format="html"><text><![CDATA[<p>No. Here, line numbers lie on the left side.</p>]]></text></feedback> |
| 28 |
</answer> |
| 29 |
<answer fraction="0" format="html"> |
| 30 |
<text><![CDATA[<p><PRE style="border-top: thin solid; border-bottom: thin solid"><CODE>% !TEX TS-program = xelatex<span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: left; float: right">6</span><BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: left; float: right">7</span><BR/><mark>\documentclass{article}</mark><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: left; float: right">8</span><BR/>\usepackage[nostamp]{moodle}<span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: left; float: right">9</span><BR/>\newif\iffvextra<span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: left; float: right">10</span><BR/></CODE></PRE></p>]]></text> |
| 31 |
<feedback format="html"><text><![CDATA[<p>No. Here, line numbers lie on the right side.</p>]]></text></feedback> |
| 32 |
</answer> |
| 33 |
<answer fraction="100" format="html"> |
| 34 |
<text><![CDATA[<p><PRE style="border-top: thin solid; border-bottom: thin solid"><CODE><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">4</span><mark>\ifxetex % FOR XELATEX</mark><BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">5</span><mark> \usepackage{fontspec}</mark><BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">6</span>\else %% FOR PDFLATEX<BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">7</span> \usepackage[utf8]{inputenc} % necessary<BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">8</span><mark> \usepackage[T1]{fontenc} % necessary</mark><BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">9</span>\fi<BR/></CODE></PRE></p>]]></text> |
| 35 |
<feedback format="html"><text><![CDATA[<p>yes!</p>]]></text></feedback> |
| 36 |
</answer> |
| 37 |
</question> |
| 38 |
<question type="multichoice"> |
| 39 |
<name format="html"> |
| 40 |
<text><![CDATA[C]]></text> |
| 41 |
</name> |
| 42 |
<questiontext format="html"> |
| 43 |
<text><![CDATA[<p><PRE style="border-top: thin solid; border-bottom: thin solid"><CODE><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">2</span><mark>#include <stdio.h></mark><BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">3</span><mark>int main() {</mark><BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">4</span><mark> char c='\0', *pc=&c;</mark><BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">5</span><mark> printf("Hello world!\n");</mark><BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">6</span> return *pc;<BR/><span style="font-size: 80%; background-color: #f0f0f0; padding: 0 5px 0 5px; display: inline-block; width: 16pt; text-align: right">7</span>}<BR/></CODE></PRE> <BR/></p>]]></text> |
| 44 |
</questiontext> |
| 45 |
<defaultgrade>1.0</defaultgrade> |
| 46 |
<generalfeedback format="html"><text/></generalfeedback> |
| 47 |
<penalty>0.10</penalty> |
| 48 |
<hidden>0</hidden> |
| 49 |
<single>true</single> |
| 50 |
<shuffleanswers>1</shuffleanswers> |
| 51 |
<answernumbering>abc</answernumbering> |
| 52 |
<answer fraction="100" format="html"> |
| 53 |
<text><![CDATA[<p>“&test"</p>]]></text> |
| 54 |
</answer> |
| 55 |
<answer fraction="0" format="html"> |
| 56 |
<text><![CDATA[<p>’toast’</p>]]></text> |
| 57 |
</answer> |
| 58 |
<answer fraction="0" format="html"> |
| 59 |
<text><![CDATA[<p><\(<a>\)></p>]]></text> |
| 60 |
</answer> |
| 61 |
</question> |
| 62 |
|
| 63 |
</quiz> |