Skip to content
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

The symbol !, used to show the hinst for unselected answers, presents issues when using the :randomized: option for the pick-any question #115

Open
jaguarfi opened this issue Dec 18, 2020 · 1 comment
Labels
area: questionnaire Related to the questionnaire directive effort: hours The issue seems to be small and should be doable in hours or few days. experience: beginner required knowledge estimate priority: low requester: internal type: bug This is a bug which is critical for the correct operation of the system

Comments

@jaguarfi
Copy link
Contributor

jaguarfi commented Dec 18, 2020

If we prepend the ! symbol to the hints within a pick-any question, and pick-any question has the `:randomized: setting, all the hints will be displayed if one of the correct answers are not selected.

In this case, only one hint should be displayed.
image

  .. pick-any:: 10
    :randomized: 4
    :correct-count: 1

    :math:`20` is the result of the following arithmetic operation.

    *a. :math:`5 \times 4`
    *b. :math:`40 \div 2`
    *c. :math:`(2+2+2+2+2) \times 2`
    d. :math:`50 \div 4`
    e. :math:`6+4+8+4`
    *f. :math:`6 \times 2+2`
    g. :math:`2 \times 8+3`
    h. :math:`6+3+6+6`
    *i. :math:`4 \times (2+3)`

    !a § This is correct. Multiplication.
    !b § This is correct. Division.
    !c § This is correct. Sum and Multiplication.
    d § Incorrect answer. The solution to this operation is not equal to 20.
    e § Incorrect answer. Please try again.
    !f § This is correct. Multiplication and Sum with operator precedence.
    g § Incorrect. Remember the operators precedence.
    h § Incorrect. Verify your results.
    !i § This is correct. Sum and multiplication with grouping symbols.
@jaguarfi jaguarfi added type: bug This is a bug which is critical for the correct operation of the system priority: low effort: hours The issue seems to be small and should be doable in hours or few days. area: questionnaire Related to the questionnaire directive experience: beginner required knowledge estimate requester: internal labels Dec 18, 2020
@jaguarfi jaguarfi changed the title The symbol ! used to show the hinst for unselected answers have issues when using the :randomized: option The symbol !, used to show the hinst for unselected answers, presents issues when using the :randomized: option for the pick-any question Dec 18, 2020
@markkuriekkinen
Copy link
Contributor

The hints are rendered by MOOC-Grader and the code would be fixed there. This might not require any changes in a-plus-rst-tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: questionnaire Related to the questionnaire directive effort: hours The issue seems to be small and should be doable in hours or few days. experience: beginner required knowledge estimate priority: low requester: internal type: bug This is a bug which is critical for the correct operation of the system
Projects
None yet
Development

No branches or pull requests

2 participants