Author a raw QTI 2.1 assessmentItem XML file for a multiple-choice question with response declaration and processing

domain: education · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Declare the candidate's response variable in a <responseDeclaration> child of <assessmentItem>, setting identifier (e.g. RESPONSE), cardinality="single", and baseType="identifier".
  2. Inside the responseDeclaration, add a <correctResponse> element containing a <value> equal to the identifier of the correct <simpleChoice> (e.g. ChoiceA).
  3. In <itemBody>, add a <choiceInteraction responseIdentifier="RESPONSE" maxChoices="1"> whose responseIdentifier matches the responseDeclaration identifier exactly, containing one <simpleChoice identifier="..."> per answer option.
  4. 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.
  5. 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.
  6. Declare an <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/> so response processing has a variable to write the computed score into.

Known gotchas

Related routes

Package a QTI 3.0 assessment item with a single choice interaction and correct response declaration
imsglobal.org · 6 steps · unrated
Construct a QTI 3.0 Test (assessmentTest) referencing multiple assessmentItems and configure time limits
imsglobal.org · 6 steps · unrated
Implement a QTI 3.0 single choice item with adaptive response processing and package it for delivery
imsglobal.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans