README (not visible to students)

This question has many correct answers. Instead of comparing the submission against a fixed correct answer, the grade() function in server.py checks whether the submitted matrix satisfies the required property (a determinant equal to a randomly chosen value). The stored correct answer is only one example of a valid answer, which is shown to students in the answer panel.

Demo: Custom grading for a question with many correct answers

Give an example of a $2\times 2$ matrix $A$ such that $\det(A) = -8$.

Correct answer

Student view placeholder

In student views this area is used for assessment and score info.
Tools

Staff information

Question

Title:
Demo: Custom grading for a question with many correct answers

Variant

Started at:
2026-08-04 20:43:42 (CDT)
Duration:
0s
Show/Hide answer
{
  "A": {
    "_type": "ndarray",
    "_dtype": "int64",
    "_value": [
      [
        -8,
        0
      ],
      [
        0,
        1
      ]
    ]
  }
}
History
dec frac
rad deg