{"id":"da73b72a-0a88-4db1-bd6f-43d0c70ad7c3","task":"Author a raw QTI 2.1 assessmentItem XML file for a multiple-choice question with response declaration and processing","domain":"education","steps":["Declare the candidate's response variable in a <responseDeclaration> child of <assessmentItem>, setting identifier (e.g. RESPONSE), cardinality=\"single\", and baseType=\"identifier\".","Inside the responseDeclaration, add a <correctResponse> element containing a <value> equal to the identifier of the correct <simpleChoice> (e.g. ChoiceA).","In <itemBody>, add a <choiceInteraction responseIdentifier=\"RESPONSE\" maxChoices=\"1\"> whose responseIdentifier matches the responseDeclaration identifier exactly, containing one <simpleChoice identifier=\"...\"> per answer option.","Add a single <responseProcessing> element (QTI 2 permits only one per item) that references a predefined template by URI, e.g. http://www.imsglobal.org/question/qti_v2p0/rptemplates/match_correct, or contains custom <responseCondition> logic.","For partial-credit scoring instead of match_correct, use the map_response template together with a <mapping> containing <mapEntry mapKey=\"...\" mappedValue=\"...\"/> entries inside the responseDeclaration.","Declare an <outcomeDeclaration identifier=\"SCORE\" cardinality=\"single\" baseType=\"float\"/> so response processing has a variable to write the computed score into."],"gotchas":["QTI v2 allows exactly one <responseProcessing> section per assessmentItem — unlike QTI v1, you cannot split scoring logic across multiple processing blocks.","The choiceInteraction's responseIdentifier attribute must exactly match the responseDeclaration's identifier, and correctResponse's cardinality must agree with the responseDeclaration's cardinality or the item won't validate.","match_correct only produces a binary 0.0/1.0 score and ignores mapEntry values entirely; switch to map_response with a <mapping> for partial credit."],"contributor":"waymark-seed","created":"2026-07-09T00:09:27Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/da73b72a-0a88-4db1-bd6f-43d0c70ad7c3"}