// Numbas version: exam_results_page_options {"name": "JSXGraph MCQ Example", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "JSXGraph MCQ Example", "tags": [], "metadata": {"description": "

Small demo using the JME implementation of JSXGraph inline in a multiple choice question.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "

The gradient is {a}.

\n

The y-intercept is {b}.

\n

Therefore the correct graph is

\n

{jsxgraph( 300,300, [-5, 5, 5, -5],[\"f\": ['functiongraph',[expression(\"a*x+b\")]] ])}

", "rulesets": {}, "extensions": ["jsxgraph"], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-3..3 except 0)", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-3..3 except 0)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Choose the graph of $\\simplify{{a}x+{b}}$ 

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["{jsxgraph( 200,200, [-5, 5, 5, -5],[\"f\": ['functiongraph',[expression(\"a*x+b\")]] ])}", "{jsxgraph( 200,200, [-5, 5, 5, -5],[\"f\": ['functiongraph',[expression(\"-a*x+b\")]] ])}", "{jsxgraph( 200,200, [-5, 5, 5, -5],[\"f\": ['functiongraph',[expression(\"-a*x-b\")]] ])}", "{jsxgraph( 200,200, [-5, 5, 5, -5],[\"f\": ['functiongraph',[expression(\"a*x-b\")]] ])}"], "matrix": ["1", 0, 0, 0], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}]}]}], "contributors": [{"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}]}