// Numbas version: exam_results_page_options {"name": "Quadratic Graphs", "extensions": ["eukleides", "jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Quadratic Graphs", "tags": ["category: graphs", "skill: 451, Recognise formula of quad. graph"], "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": ["eukleides", "jsxgraph"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"pairs": {"name": "pairs", "group": "Ungrouped variables", "definition": "[\n [\n [\"$x^2-x$\",\"$x^2-1$\",\"$(x-1)^2$\",\"$x^2+x$\",\"$1-x^2$\"],\n [1,0,0,0,0]\n ],\n [\n [\"$(x-3)^2$\",\"$x^2-3x$\",\"$x^2+2$\",\"$4-x^2$\",\"$x^2+2x$\"],\n [0,1,0,0,0]\n ]\n]", "description": "", "templateType": "anything", "can_override": false}, "pair": {"name": "pair", "group": "Ungrouped variables", "definition": "random(pairs)", "description": "", "templateType": "anything", "can_override": false}, "choices": {"name": "choices", "group": "Ungrouped variables", "definition": "pair[0]", "description": "", "templateType": "anything", "can_override": false}, "choice_marks": {"name": "choice_marks", "group": "Ungrouped variables", "definition": "pair[1]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["pairs", "pair", "choices", "choice_marks"], "variable_groups": [], "functions": {"graph": {"parameters": [], "type": "html", "language": "javascript", "definition": "// First, make the JSXGraph board.\n// The function provided by the JSXGraph extension wraps the board up in\n// a div tag so that it's easier to embed in the page.\nvar div = Numbas.extensions.jsxgraph.makeBoard('400px','400px',\n {boundingBox: [-2,3,3,-1],\n axis: false,\n showNavigation: false,\n grid: false\n });\n\n// div.board is the object created by JSXGraph, which you use to\n// manipulate elements\nvar board = div.board;\n\nboard.create('axis',[[0,0],[1,0]],{ticks:{visible:false}})\nboard.create('axis',[[0,0],[0,1]],{ticks:{visible:false}});\nboard.create('functiongraph',[function(x){return x*x-x}],{fixed:true, name:''});\nboard.removeObject(board.infobox);\n\n// Then do whatever you want with the board....\n\n// and return the container div\nreturn div;"}}, "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 function whose graph looks like this.

\n

{graph()}

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": "choices", "matrix": "choice_marks"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}