// Numbas version: exam_results_page_options {"feedback": {"showactualmark": true, "advicethreshold": 0, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "intro": "", "feedbackmessages": []}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": ""}, "showQuestionGroupNames": false, "showstudentname": true, "name": "test exam", "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "navigation": {"browse": true, "preventleave": true, "onleave": {"action": "none", "message": ""}, "reverse": true, "showfrontpage": true, "showresultspage": "oncompletion", "allowregen": true}, "percentPass": 0, "duration": 0, "question_groups": [{"pickingStrategy": "all-ordered", "pickQuestions": 1, "name": "Group", "questions": [{"name": "Daniel's copy of Integration: Integral of a graph. Version IV", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Daniel Mansfield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/743/"}, {"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}], "parts": [{"marks": 0, "maxMarks": "2", "prompt": "

Here is the graph of the derivative of $f$.

\n

{plot({n})}

\n

Which of the graphs below could be the graph of $f$?

\n

              

", "displayType": "radiogroup", "distractors": ["", "", "", ""], "minMarks": 0, "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "customMarkingAlgorithm": "", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "displayColumns": 0, "unitTests": [], "matrix": ["0", "0", 0, "2"], "showFeedbackIcon": true, "shuffleChoices": true, "choices": ["

{plot({n+1})}

", "

{plot({n})}

", "

{plot({n+2})}

", "

{plot({n+3})}

"], "variableReplacements": []}], "tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "ungrouped_variables": ["n", "answer"], "statement": "", "functions": {"plot": {"parameters": [["n", "number"]], "type": "html", "language": "javascript", "definition": "// This function creates the board and sets it up, then returns an\n// HTML div tag containing the board.\n\n//Put in your values of x here\n\nvar x_min = -4;\nvar x_max = 4;\nvar y_min = -1.3;\nvar y_max = 1.3;\n\nn=n%4;\n\n// 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: [-8,10,8,-10],\n {boundingBox: [x_min,y_max,x_max,y_min], \n axis: false,\n showNavigation: false,\n grid: true\n});\n\n\n\n\n// div.board is the object created by JSXGraph, which you use to \n// manipulate elements\nvar board = div.board; \n\n// create the x-axis.\nvar xaxis = board.create('line',[[0,0],[1,0]], { strokeColor: 'black', fixed: true});\nvar xticks = board.create('ticks',[xaxis,1],{\n drawLabels: true,\n label: {offset: [-4, -10]},\n minorTicks: 0\n});\n\n// create the y-axis\nvar yaxis = board.create('line',[[0,0],[0,1]], { strokeColor: 'black', fixed: true });\nvar yticks = board.create('ticks',[yaxis,1],{\ndrawLabels: true,\nlabel: {offset: [-20, 0]},\nminorTicks: 0\n});\n\n\n // PUT YOUR FUNCTION HERE\n\n\n\nif(n==1)\n board.create('functiongraph',[function(x){ return Math.cos(x);},x_min,x_max]);\nelse if (n==2)\n board.create('functiongraph',[function(x){ return -Math.sin(x);},x_min,x_max]);\nelse if (n==3)\n board.create('functiongraph',[function(x){ return -Math.cos(x);},x_min,x_max]);\nelse if (n==0)\n board.create('functiongraph',[function(x){ return Math.sin(x);},x_min,x_max]);\n\nreturn div;"}}, "advice": "", "variables": {"answer": {"name": "answer", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "mod((n+1),4)"}, "n": {"name": "n", "templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(0..3)"}}, "metadata": {"description": "

A graph is drawn. A student is to identify the derivative of this graph from four other graphs.

\n

Version I. Graph is quadratic

\n

Version II. Graph is horizontal

\n

Version III. Graph is cubic

\n

Version IV. Graph is sinusoidal

", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"css": "", "js": ""}, "variable_groups": [], "rulesets": {}, "type": "question"}]}], "type": "exam", "contributors": [{"name": "Daniel Mansfield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/743/"}, {"name": "Paul Hancock", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1738/"}, {"name": "Samantha Konig", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2560/"}, {"name": "Sarah Crawford", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2563/"}], "extensions": ["jsxgraph"], "custom_part_types": [], "resources": []}