-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a general description in a questionnaire with the pick_randomly
option generates an empty question
#109
Comments
The pool_of_questions.rst looks like this: .. freetext:: 10 regexp
This question accepts either "red" or "blue" as the correct answer.
The model solution is a regular expression.
red|blue
.. pick-one:: 10
:required:
:dropdown:
What is 1+2?
+0. 0
1. 1
2. 2
*3. 3
.. freetext:: 10 string-ignorews-ignorequotes-requirecase
:length: 10
A textual input can be compared with the model solution as integer, float or string.
Here the correct answer is "test". Surrounding quotes are ignored in the solution
as well as whitespace everywhere (modifiers ignorequotes and ignorews).
test
!test § Follow the instruction.
regexp:Test|TEST § Use the lower case! |
The actual problem here could be that Another thing to test: use the include directive, but remove all static text blocks. Does Note that questions may still have their own descriptions (text). By static text block, I mean text that is outside any question directive, but inside the questionnaire directive. In the config.yaml, you can see that the text blocks are their own items in the fields list and they have type |
Yes, you are right, the static text causes this problem. I removed the static text This is a questionnaire with the key `1` that grants at maximum 70 points
of difficulty A. Students can make at most 4 submissions.
This exercise is marked passed when 0 points are reached (the default). and that solved the problem. |
pick_randomly
option generates an empty questionpick_randomly
option generates an empty question
Then this issue can be about fixing the random choice of questions in the MOOC-Grader graded form code so that static text blocks would not be part of the question pool. Code around here and elsewhere in the file: |
The following code will generate an empty question
The yaml file will have something like this
The UI looks like this
The text in the questionnaire description is not accurate, this is just an example.
The text was updated successfully, but these errors were encountered: