// Numbas version: exam_results_page_options {"percentPass": "75", "feedback": {"advicethreshold": 0, "intro": "", "showanswerstate": true, "feedbackmessages": [], "allowrevealanswer": true, "showtotalmark": true, "showactualmark": true}, "name": "Sample SCORM", "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questions": [{"name": "Vicky's copy of Julie's copy of Plot the graph of a quadratic function", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Vicky Mason", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2687/"}], "variable_groups": [], "functions": {}, "variables": {"c": {"name": "c", "group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(-4..4 except 0)"}, "a": {"name": "a", "group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(-2,-1,-0.5,0.5,1,2)"}, "values": {"name": "values", "group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "map(a*x^2+c,x,-3..3)"}}, "statement": "

You are given the quadratic function $y=\\simplify[std]{{a}x^2+{c}}$

", "ungrouped_variables": ["a", "c", "values"], "metadata": {"description": "

Compute a table of values for a quadratic function. A JSXgraph (the graph paper) plot shows the curve going through the entered values. The student input is now disconnected from the graph so that they slide the points usually after they input the values and the answer fields are not updated.

", "licence": "Creative Commons Attribution 4.0 International"}, "tags": [], "preamble": {"js": "\nfunction dragpoint_board() {\n\n var scope = question.scope; \n var a = scope.variables.a.value;\n\n var c = scope.variables.c.value;\n var maxy = Math.max(Math.abs(a*9+c),Math.abs(c));\n \n var div = Numbas.extensions.jsxgraph.makeBoard('250px','400px',{boundingBox:[-5,maxy+3,5,-maxy-3],grid:true});\n $(question.display.html).find('#dragpoint').append(div);\n \n var board = div.board;\n \n //shorthand to evaluate a mathematical expression to a number\n function evaluate(expression) {\n try {\n var val = Numbas.jme.evaluate(expression,question.scope);\n return Numbas.jme.unwrapValue(val);\n }\n catch(e) {\n // if there's an error, return no number\n return NaN;\n }\n }\n \n // set up points array\n var num_points = 7;\n var points = [];\n \n \n // this function sets up the i^th point\n function make_point(i) {\n \n // calculate initial coordinates\n var x = i-(num_points-1)/2;\n \n // create an invisible vertical line for the point to slide along\n var line = board.create('line',[[x,0],[x,1]],{visible: false});\n \n // create the point\n var point = points[i] = board.create(\n 'glider',\n [i-(num_points-1)/2,0,line],\n {\n name:'',\n size:2,\n snapSizeY: 0.1, // the point will snap to y-coordinates which are multiples of 0.1\n snapToGrid: true\n }\n );\n \n // the contents of the input box for this point\n var studentAnswer = question.parts[2].gaps[i].display.studentAnswer;\n \n //Here I have commented out the functions which connect the student input to the graph and the filling in of the answer fields\n //when the student drags the points on the graph.\n \n // watch the student's input and reposition the point when it changes. \n // ko.computed(function() {\n // y = evaluate(studentAnswer());\n //if(!(isNaN(y)) && board.mode!=board.BOARD_MODE_DRAG) {\n // point.moveTo([x,y],100);\n // }\n // });\n \n // when the student drags the point, update the gapfill input\n point.on('drag',function(){\n var y = Numbas.math.niceNumber(point.Y());\n studentAnswer(y);\n });\n \n }\n \n // create each point\n for(var i=0;iThe graph of this function is:

", "choices": ["

An upwards-opening parabola

", "

A downwards-opening parabola

"], "customMarkingAlgorithm": "", "matrix": ["if(a>0,1,0)", "if(a>0,0,1)"], "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "displayColumns": 0, "showCorrectAnswer": true, "minMarks": 0, "distractors": ["", ""], "variableReplacements": []}, {"unitTests": [], "marks": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "gapfill", "prompt": "

Fill in the table of values for $y=\\simplify[std]{{a}x^2+{c}}$:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$x$$-3$$-2$$-1$$0$$1$$2$$3$
$y$[[0]][[1]][[2]][[3]][[4]][[5]][[6]]
\n", "customMarkingAlgorithm": "", "gaps": [{"unitTests": [], "marks": 0.5, "allowFractions": false, "minValue": "{a}*9+{c}", "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "maxValue": "{a}*9+{c}", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"unitTests": [], "marks": 0.5, "allowFractions": false, "minValue": "{a}*4+{c}", "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "maxValue": "{a}*4+{c}", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"unitTests": [], "marks": 0.5, "allowFractions": false, "minValue": "{a}*1+{c}", "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "maxValue": "{a}*1+{c}", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"unitTests": [], "marks": 0.5, "allowFractions": false, "minValue": "{c}", "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "maxValue": "{c}", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"unitTests": [], "marks": 0.5, "allowFractions": false, "minValue": "{a}*1+{c}", "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "maxValue": "{a}*1+{c}", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"unitTests": [], "marks": 0.5, "allowFractions": false, "minValue": "{a}*4+{c}", "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "maxValue": "{a}*4+{c}", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"unitTests": [], "marks": 0.5, "allowFractions": false, "minValue": "{a}*9+{c}", "variableReplacementStrategy": "originalfirst", "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "maxValue": "{a}*9+{c}", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}], "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "variableReplacements": []}], "rulesets": {"std": ["all", "fractionNumbers"]}, "type": "question"}, {"name": "William's copy of Question 2.1 MATH 6005 Assessment 1 Matrix Multiplication 2 (3x3 by 3x2 matrices)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Violeta CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1030/"}, {"name": "William Lee", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2797/"}], "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "variable_groups": [], "variables": {"b31": {"definition": "random(-1..1)", "name": "b31", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "a21": {"definition": "random(-2..2)", "name": "a21", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ab11": {"definition": "a11*b11+a12*b21+a13*b31", "name": "ab11", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "b11": {"definition": "random(-3,-1,0,3)", "name": "b11", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "a13": {"definition": "random(0..2)", "name": "a13", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ba11": {"definition": "b11*a11+b12*a21", "name": "ba11", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ba13": {"definition": "b11*a13+b12*a23", "name": "ba13", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "c12": {"definition": "a12+b12", "name": "c12", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "b32": {"definition": "random(2..5)", "name": "b32", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ac11": {"definition": "a11*c11+a12*c21", "name": "ac11", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ab21": {"definition": "a21*b11+a22*b21+a23*b31", "name": "ab21", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "a12": {"definition": "random(1..4)", "name": "a12", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "b21": {"definition": "random(2,3)", "name": "b21", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "c22": {"definition": "random(0,1)", "name": "c22", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "b22": {"definition": "random(-3..-1)", "name": "b22", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "cb12": {"definition": "c11*b12+c12*b22", "name": "cb12", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "a23": {"definition": "random(-2..3)", "name": "a23", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ba23": {"definition": "b21*a13+b22*a23", "name": "ba23", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "a11": {"definition": "random(-2,1,2)", "name": "a11", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ba22": {"definition": "b21*a12+b22*a22", "name": "ba22", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ac22": {"definition": "a21*c12+a22*c22", "name": "ac22", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "c11": {"definition": "random(1,0,4)", "name": "c11", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ba12": {"definition": "b11*a12+b12*a22", "name": "ba12", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "cb22": {"definition": "c21*b12+c22*b22", "name": "cb22", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "c21": {"definition": "random(2..5)", "name": "c21", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ab22": {"definition": "a21*b12+a22*b22+a23*b32", "name": "ab22", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ac12": {"definition": "a11*c12+a12*c22", "name": "ac12", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ba32": {"definition": "b31*a12+b32*a22", "name": "ba32", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ba21": {"definition": "b21*a11+b22*a21", "name": "ba21", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ac21": {"definition": "a21*c11+a22*c21", "name": "ac21", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "cb21": {"definition": "c21*b11+c22*b21", "name": "cb21", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "cb11": {"definition": "c11*b11+c12*b21", "name": "cb11", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "b12": {"definition": "random(-3..1)", "name": "b12", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "a22": {"definition": "random(1..3)", "name": "a22", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ba31": {"definition": "b31*a11+b32*a21", "name": "ba31", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ab12": {"definition": "a11*b12+a12*b22+a13*b32", "name": "ab12", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "ba33": {"definition": "b31*a13+b32*a23", "name": "ba33", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "ungrouped_variables": ["ba21", "a21", "a22", "ba22", "cb21", "b22", "b21", "cb22", "ac22", "ac21", "ab22", "ab21", "b12", "b11", "c12", "c11", "c22", "a11", "cb11", "cb12", "a12", "c21", "ba11", "ba12", "ab12", "ab11", "ac12", "ac11", "a13", "a23", "b31", "b32", "ba13", "ba23", "ba31", "ba32", "ba33"], "preamble": {"js": "", "css": ""}, "advice": "

a)

\n

\\[ \\begin{eqnarray*} AB &=& \\begin{pmatrix} \\var{a11}&\\var{a12}\\\\ \\var{a21}&\\var{a22}\\\\ \\end{pmatrix}\\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\simplify[]{{a11}{b11}+{a12}{b21}}&\\simplify[]{{a11}{b12}+{a12}{b22}}\\\\ \\simplify[]{{a21}{b11}+{a22}{b21}}&\\simplify[]{{a21}{b12}+{a22}{b22}}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\var{ab11}&\\var{ab12}\\\\ \\var{ab21}&\\var{ab22}\\\\ \\end{pmatrix} \\end{eqnarray*} \\]

\n

b)

\n

\\[ \\begin{eqnarray*} BA &=& \\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\end{pmatrix}\\begin{pmatrix} \\var{a11}&\\var{a12}\\\\ \\var{a21}&\\var{a22}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\simplify[]{{b11}{a11}+{b12}{a21}}&\\simplify[]{{b11}{a12}+{b12}{a22}}\\\\ \\simplify[]{{b21}{a11}+{b22}{a21}}&\\simplify[]{{b21}{a12}+{b22}{a22}}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\var{ba11}&\\var{ba12}\\\\ \\var{ba21}&\\var{ba22}\\\\ \\end{pmatrix} \\end{eqnarray*} \\]

\n

c)

\n

\\[ \\begin{eqnarray*} CB &=& \\begin{pmatrix} \\var{c11}&\\var{c12}\\\\ \\var{c21}&\\var{c22}\\\\ \\end{pmatrix}\\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\simplify[]{{c11}{b11}+{c12}{b21}}&\\simplify[]{{c11}{b12}+{c12}{b22}}\\\\ \\simplify[]{{c21}{b11}+{c22}{b21}}&\\simplify[]{{c21}{b12}+{a22}{b22}}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\var{cb11}&\\var{cb12}\\\\ \\var{cb21}&\\var{cb22}\\\\ \\end{pmatrix} \\end{eqnarray*} \\]

\n

d)

\n

\\[ \\begin{eqnarray*} AC &=& \\begin{pmatrix} \\var{a11}&\\var{a12}\\\\ \\var{a21}&\\var{a22}\\\\ \\end{pmatrix}\\begin{pmatrix} \\var{c11}&\\var{c12}\\\\ \\var{c21}&\\var{c22}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\simplify[]{{a11}{c11}+{a12}{c21}}&\\simplify[]{{a11}{c12}+{a12}{c22}}\\\\ \\simplify[]{{a21}{c11}+{a22}{c21}}&\\simplify[]{{a21}{c12}+{a22}{c22}}\\\\ \\end{pmatrix}\\\\ &=& \\begin{pmatrix} \\var{ac11}&\\var{ac12}\\\\ \\var{ac21}&\\var{ac22}\\\\ \\end{pmatrix} \\end{eqnarray*} \\]

", "tags": [], "parts": [{"scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "showFeedbackIcon": true, "marks": 0, "type": "gapfill", "prompt": "

$AB = \\begin{pmatrix} \\var{a11}&\\var{a12}&\\var{a13}\\\\ \\var{a21}&\\var{a22}&\\var{a23}\\\\ \\end{pmatrix}\\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\var{b31}&\\var{b32}\\end{pmatrix} = $ [[0]]

", "gaps": [{"variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "correctAnswer": "matrix([\n [ab11,ab12],\n [ab21,ab22]\n])", "allowResize": false, "showFeedbackIcon": true, "marks": "1", "variableReplacements": [], "markPerCell": false, "scripts": {}, "allowFractions": false, "numRows": "2", "tolerance": 0, "numColumns": "2", "type": "matrix", "correctAnswerFractions": false}]}, {"scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "showFeedbackIcon": true, "marks": 0, "type": "gapfill", "prompt": "

$BA = \\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\var{b31}&\\var{b32}\\end{pmatrix}\\begin{pmatrix} \\var{a11}&\\var{a12}&\\var{a13}\\\\ \\var{a21}&\\var{a22}&\\var{a23}\\\\ \\end{pmatrix}=$ [[0]]

", "gaps": [{"variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "correctAnswer": "matrix([\n [ba11,ba12,ba13],\n [ba21,ba22,ba23],\n [ba31,ba32,ba33]\n])", "allowResize": false, "showFeedbackIcon": true, "marks": "1", "variableReplacements": [], "markPerCell": false, "scripts": {}, "allowFractions": false, "numRows": "3", "tolerance": 0, "numColumns": "3", "type": "matrix", "correctAnswerFractions": false}]}], "variablesTest": {"maxRuns": 100, "condition": ""}, "statement": "

Do the following matrix problems :
Let
\\[A=\\begin{pmatrix} \\var{a11}&\\var{a12}&\\var{a13}\\\\ \\var{a21}&\\var{a22}&\\var{a23}\\\\ \\end{pmatrix},\\;\\; B=\\begin{pmatrix} \\var{b11}&\\var{b12}\\\\ \\var{b21}&\\var{b22}\\\\ \\var{b31}&\\var{b32}\\end{pmatrix},\\;\\; \\]
Calculate the following products of these matrices:

", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Multiplication of $2 \\times 2$ matrices.

"}, "functions": {}, "type": "question"}]}], "navigation": {"browse": true, "onleave": {"message": "", "action": "none"}, "allowregen": true, "preventleave": true, "showfrontpage": true, "reverse": true, "showresultspage": "oncompletion"}, "duration": 0, "showQuestionGroupNames": false, "showstudentname": true, "timing": {"timedwarning": {"message": "", "action": "none"}, "timeout": {"message": "", "action": "none"}, "allowPause": true}, "metadata": {"licence": "None specified", "description": "

Scorm?

"}, "type": "exam", "contributors": [{"name": "Matthew Jones", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2846/"}], "extensions": ["jsxgraph"], "custom_part_types": [], "resources": []}