List[Int] vs. Int discrepency in template
In the *.response.yaml
files, the resp:
parameter must be submitted as a list of ints, even if there is only a single answer.
Example: [1]
vs. 1
Additionally, an answer of index 0 causes the problem to be graded as incorrect.
Example:
3.1.2.d.jqr
- choices:
- stack
- heap
- both
soln: [0]
text: 'Does the stack or the heap automatically deallocate after the function returns?'
type: MC
3.1.2.d.jqr.response.yaml
- choices:
- stack
- heap
- both
resp: [0]
text: 'Does the stack or the heap automatically deallocate after the function returns?'
type: MC
output
Question (MC): Does the stack or the heap automatically deallocate after the function returns?
Your Response: [0]
This was tried with resp:
and soln:
being [0]
and 0
, for a total of four different attempts at finding the correct format.