Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 193af8a

Browse files
committed
Merge pull request #39 from riknos314/assortedSphinxupdatesPR
Updated overview.rst and cleaned up some .py files
2 parents 344030c + 8fc8ec5 commit 193af8a

File tree

3 files changed

+35
-8
lines changed

3 files changed

+35
-8
lines changed

runestone/common/project_template/_sources/overview.rst

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,17 +286,17 @@ next line executed.
286286
Timed Exam Questions
287287
---------------------
288288

289-
You can add a timed exam of multiple-choice questions that the user can only take once. All the feedback will be shown after the time is up or after the user has clicked the "Submit Answers" button at the end of the timed exam. To start the timed exam click on the "Start" button. This will also start the countdown of the time remaining. You can pause the timer by clicking on the "Pause" button and start it again by clicking on the "Resume" button. When you pause the timed exam the questions will be hidden. There is also a clock icon that will display the time remaining when the reader hovers over it.
289+
You can add a timed exam of multiple-choice/fill-in-the-blank questions that the user can only take once. All the feedback will be shown after the time is up or after the user has clicked the "Submit Answers" button at the end of the timed exam. To start the timed exam click on the "Start" button. This will also start the countdown of the time remaining. You can pause the timer by clicking on the "Pause" button and start it again by clicking on the "Resume" button. When you pause the timed exam the questions will be hidden. There is also a clock icon that will display the time remaining when the reader hovers over it.
290290

291291
Please note that you can currently only have one timed exam per html page.
292292

293-
It currently needs at least 4 directives to function: starttimer, revealquestions, timedmchoicemf, and finishtimer. You can have as many timedmchoicemf as you want. The time is specified in minutes using the :duration option in starttimer.
293+
All you need is the timed directive--you can specify the time limit (in minutes), and there are options for no feedback, no results, and no time limit (in which case it will keep track of the amount of time taken to complete the exam).
294+
A timed exam can hold any number of multiple choice or fill in the blank questions.
294295

295296
.. timed:: timed1
296297
:timelimit: 10
297298

298299
.. mchoice:: questiontimed1_1
299-
:timed:
300300
:answer_a: The value you are searching for is the first element in the array.
301301
:answer_b: The value you are searching for is the last element in the array
302302
:answer_c: The value you are searching for is in the middle of the array.
@@ -312,7 +312,6 @@ It currently needs at least 4 directives to function: starttimer, revealquestion
312312
Under which of these conditions will a sequential search be faster than a binary search?
313313

314314
.. mchoice:: questiontimed2
315-
:timed:
316315
:random:
317316
:multiple_answers:
318317
:correct: a,b,d
@@ -328,7 +327,6 @@ It currently needs at least 4 directives to function: starttimer, revealquestion
328327
Which of these are colors of the rainbow?
329328

330329
.. fillintheblank:: fill1412
331-
:timed:
332330

333331
.. blank:: blank1345
334332
:correct: \\bred\\b
@@ -406,6 +404,37 @@ Fix the following code so that it always correctly adds two numbers.
406404
myTests().main()
407405

408406

407+
Drag N Drop
408+
------------------
409+
410+
You can add a Drag n drop matching question to your page simply by defining the pairs of matchable elements within a dragndrop directive.
411+
The order of draggable elements and their respective dropzones will be randomized so the pairs aren't always side-by-side.
412+
413+
.. dragndrop:: dnd1
414+
:feedback: This is feedback.
415+
:match_1: Drag me to 1|||I am 1
416+
:match_2: Drag me to 2|||I am 2
417+
:match_3: Drag me to 3|||I am 3
418+
419+
This is a drag n drop question.
420+
421+
Clickable Area
422+
------------------
423+
424+
Clickable area is another type of assess question you can use. All you need to do is write the code you wish to be in the question, and wrap the parts that you
425+
would like to be clickable in either a click-correct tag or a click-incorrect tag. The students can click on all elements you defined as being clickable, and
426+
will be evaluated once they click the 'Check Me' button.
427+
428+
.. clickablearea:: click1
429+
:question: Click on all assignment statements.
430+
:feedback: Remember, the operator '=' is used for assignment.
431+
432+
:click-incorrect:def main()::endclick:
433+
:click-correct:x = 4:endclick:
434+
for i in range(5):
435+
:click-correct:y = i:endclick:
436+
:click-incorrect:if y > 2::endclick:
437+
print(y)
409438

410439

411440
Disqus Comment Box
@@ -421,7 +450,7 @@ A comment box allowing users to add comments and start discussions can be added.
421450
Tabbed Question
422451
---------------
423452

424-
Any of the existing question types can be placed in a tabbed exhibit-style question. This may be used to provide an possible answer or a Disqus discussion box specifically related to a certain question.
453+
Any of the existing components can be placed in a tabbed exhibit-style question. This may be used to provide an possible answer or a Disqus discussion box specifically related to a certain question.
425454

426455
.. tabbed:: exercise1
427456

runestone/dragndrop/dragndrop.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ def depart_dnd_node(self,node):
7070
# Add all of the possible answers
7171
okeys = list(node.dnd_options.keys())
7272
okeys.sort()
73-
print(okeys)
7473
for k in okeys:
7574
if 'match' in k:
7675
x,label = k.split('_')

runestone/parsons/parsons.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ def findmax(alist):
115115
self.options['code'] = "\n".join(self.options['code'])
116116

117117
self.options['divid'] = self.arguments[0]
118-
print(self.options)
119118

120119
self.assert_has_content()
121120
return [ParsonsNode(self.options)]

0 commit comments

Comments
 (0)