// Numbas version: exam_results_page_options {"name": "Decide which of two values is bigger", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "", "type": "question", "variables": {"decision_matrix": {"name": "decision_matrix", "description": "

Marking matrix for the part \"which is bigger: \$a^b\$ or \$b^a\$?\".

\n

Uses the variables a_to_b and b_to_a so they can be replaced with the student's answers, enabling adaptive marking.

", "templateType": "anything", "definition": "if(a_to_b>b_to_a,\n [1,0],\n [0,1]\n)", "group": "Ungrouped variables"}, "b": {"name": "b", "description": "", "templateType": "anything", "definition": "random(1..3 except a)", "group": "Ungrouped variables"}, "a": {"name": "a", "description": "", "templateType": "randrange", "definition": "random(1..3#1)", "group": "Ungrouped variables"}, "a_to_b": {"name": "a_to_b", "description": "

\$a\$ to the power of \$b\$

", "templateType": "anything", "definition": "a^b", "group": "Ungrouped variables"}, "b_to_a": {"name": "b_to_a", "description": "

\$b\$ to the power of \$a\$.

", "templateType": "anything", "definition": "b^a", "group": "Ungrouped variables"}}, "variable_groups": [], "name": "Decide which of two values is bigger", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

The student has to compute \$a^b\$ and \$b^a\$, then decide which of the two is bigger.

\n

This question shows how to set up a custom marking matrix for the \"choose one from a list\" part, based on values used elsewhere in the question. It could use adaptive marking to use the student's incorrect values for the comparison, but doesn't at the moment.

"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "parts": [{"extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 1, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "maxValue": "a_to_b", "prompt": "

What is \$\\simplify[]{{a}^{b}}\$?

", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "minValue": "a_to_b", "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "variableReplacements": [], "correctAnswerFraction": false, "allowFractions": false}, {"extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "marks": 1, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "maxValue": "b_to_a", "prompt": "

What is \$\\simplify[]{{b}^{a}}\$?

", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "minValue": "b_to_a", "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "variableReplacements": [], "correctAnswerFraction": false, "allowFractions": false}, {"shuffleChoices": false, "extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "showCorrectAnswer": true, "matrix": "decision_matrix", "prompt": "

Which is bigger?

", "choices": ["\$\\simplify[]{{a}^{b}}\$", "\$\\simplify[]{{b}^{a}}\$"], "showFeedbackIcon": true, "minMarks": 0, "displayType": "radiogroup", "customMarkingAlgorithm": "", "unitTests": [], "maxMarks": 0, "displayColumns": 0, "variableReplacements": [{"variable": "a_to_b", "must_go_first": false, "part": "p0"}, {"variable": "b_to_a", "must_go_first": false, "part": "p1"}], "marks": 0}], "functions": {}, "tags": [], "extensions": [], "preamble": {"css": "", "js": ""}, "rulesets": {}, "ungrouped_variables": ["a", "b", "a_to_b", "b_to_a", "decision_matrix"], "advice": "", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}