// Numbas version: finer_feedback_settings {"metadata": {"licence": "None specified", "description": ""}, "showstudentname": true, "duration": 0, "timing": {"allowPause": true, "timedwarning": {"action": "none", "message": ""}, "timeout": {"action": "none", "message": ""}}, "name": "INTO Training Day Demo", "showQuestionGroupNames": false, "navigation": {"showfrontpage": true, "startpassword": "", "allowregen": true, "reverse": true, "onleave": {"action": "none", "message": ""}, "showresultspage": "oncompletion", "preventleave": true, "browse": true}, "percentPass": "65", "feedback": {"advicethreshold": 0, "feedbackmessages": [], "intro": "", "showanswerstate": true, "showtotalmark": true, "showactualmark": true, "allowrevealanswer": true, "enterreviewmodeimmediately": true, "showexpectedanswerswhen": "inreview", "showpartfeedbackmessageswhen": "always", "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showadvicewhen": "never"}, "question_groups": [{"pickQuestions": 1, "pickingStrategy": "all-ordered", "name": "Group", "questions": [{"name": "Chemistry Test Question", "extensions": ["chemistry"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}], "variable_groups": [], "rulesets": {}, "statement": "

Answer the following questions!

", "functions": {}, "variables": {"r1": {"description": "", "templateType": "anything", "name": "r1", "definition": "random(1..92 except 84..89 except x1 except x2 except x3 except 43 except 61)", "group": "Ungrouped variables"}, "s3": {"description": "", "templateType": "anything", "name": "s3", "definition": "symbol(atom(x3))", "group": "Ungrouped variables"}, "x2": {"description": "", "templateType": "anything", "name": "x2", "definition": "random(1..92 except x1)", "group": "Ungrouped variables"}, "s1": {"description": "", "templateType": "anything", "name": "s1", "definition": "symbol(atom(x1))", "group": "Ungrouped variables"}, "r3": {"description": "", "templateType": "anything", "name": "r3", "definition": "random(1..92 except 84..89 except x1 except x2 except x3 except r1 except r2 except 43 except 61)", "group": "Ungrouped variables"}, "s2": {"description": "", "templateType": "anything", "name": "s2", "definition": "symbol(atom(x2))", "group": "Ungrouped variables"}, "x3": {"description": "", "templateType": "anything", "name": "x3", "definition": "random(1..92 except x1 except x2)", "group": "Ungrouped variables"}, "r2": {"description": "", "templateType": "anything", "name": "r2", "definition": "random(1..92 except 84..89 except x1 except x2 except x3 except r1 except 43 except 61)", "group": "Ungrouped variables"}, "r4": {"description": "", "templateType": "anything", "name": "r4", "definition": "random(1..92 except 84..89 except x1 except x2 except x3 except r1 except r2 except r3 except 43 except 61)", "group": "Ungrouped variables"}, "x1": {"description": "", "templateType": "anything", "name": "x1", "definition": "random(1..92)", "group": "Ungrouped variables"}, "n1": {"description": "", "templateType": "anything", "name": "n1", "definition": "capitalise(name(atom(s1)))", "group": "Ungrouped variables"}, "n2": {"description": "", "templateType": "anything", "name": "n2", "definition": "capitalise(name(atom(s2)))", "group": "Ungrouped variables"}, "n3": {"description": "", "templateType": "anything", "name": "n3", "definition": "capitalise(name(atom(s3)))", "group": "Ungrouped variables"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"description": "", "licence": "None specified"}, "preamble": {"js": "", "css": ""}, "tags": [], "parts": [{"matchMode": "regex", "scripts": {}, "customName": "", "useCustomName": false, "displayAnswer": "{n1}", "type": "patternmatch", "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "marks": 1, "prompt": "

Which element has the chemical symbol $\\var{s1}$ ?

", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "answer": "{n1}", "unitTests": [], "showCorrectAnswer": true, "variableReplacements": []}, {"matchMode": "exact", "scripts": {}, "customName": "", "useCustomName": false, "displayAnswer": "{s2}", "type": "patternmatch", "variableReplacementStrategy": "originalfirst", "partialCredit": "50", "customMarkingAlgorithm": "", "caseSensitive": true, "marks": 1, "prompt": "

What is the chemical symbol for the element $\\var{n2}$ ?

", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "answer": "{s2}", "unitTests": [], "showCorrectAnswer": true, "variableReplacements": []}, {"shuffleChoices": true, "scripts": {}, "customName": "", "type": "1_n_2", "displayType": "radiogroup", "customMarkingAlgorithm": "", "choices": ["{n3}", "$\\var{capitalise(name(atom(r1)))}$", "$\\var{capitalise(name(atom(r2)))}$", "$\\var{capitalise(name(atom(r3)))}$", "$\\var{capitalise(name(atom(r4)))}$"], "showCellAnswerState": true, "extendBaseMarkingAlgorithm": true, "maxMarks": 0, "distractors": ["", "", "", "", ""], "unitTests": [], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "marks": 0, "prompt": "

This element was discovered in $\\var{atom(s3)[\"yearDiscovered\"]}$ and belongs to the $\\var{atom(s3)[\"groupBlock\"]}$ group of the periodic table.  Its standard state is $\\var{atom(s3)[\"standardState\"]}$ and the density is $\\var{atom(s3)[\"density\"]}$ g/mL.  It has a melting point of $\\var{atom(s3)[\"meltingPoint\"]}$K and a boiling point of $\\var{atom(s3)[\"boilingPoint\"]}$K.  The atomic number is $\\var{atom(s3)[\"atomicNumber\"]}$.

\n

What is the name of this element?

\n

", "minMarks": 0, "displayColumns": 0, "variableReplacements": [], "showCorrectAnswer": true, "matrix": ["1", 0, 0, 0, 0], "showFeedbackIcon": true}], "advice": "", "ungrouped_variables": ["s1", "x1", "n1", "x2", "n2", "s2", "x3", "s3", "n3", "r1", "r2", "r3", "r4"], "type": "question"}, {"name": "Drag points to given Cartesian coordinates", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}], "tags": [], "metadata": {"description": "

Drag points on a graph to the given Cartesian coordinates. There are points in each of the four quadrants and on each axis.

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

Move the points to the required coordinates on the graph.

", "advice": "

Coordinates are given as $(x\\text{-coordinate},y\\text{-coordinate})$. So, for example $(2,5)$ has $x$-coordinate $= 2$ and $y$-coordinate$= 5$.

\n

Plot the first coordinate ($x$-coordinate) against the horizontal axis and then plot the second coordinate ($y$-coordinate) against the vertical axis.

\n

{correctPoints()}

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"b2": {"name": "b2", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "random(-10..-1)", "description": "", "templateType": "anything", "can_override": false}, "d1": {"name": "d1", "group": "Ungrouped variables", "definition": "random(-10..-1)", "description": "", "templateType": "anything", "can_override": false}, "f2": {"name": "f2", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "e2": {"name": "e2", "group": "Ungrouped variables", "definition": "0", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "2", "description": "", "templateType": "anything", "can_override": false}, "x": {"name": "x", "group": "Ungrouped variables", "definition": "1", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(-10..-1)", "description": "", "templateType": "anything", "can_override": false}, "f1": {"name": "f1", "group": "Ungrouped variables", "definition": "0", "description": "", "templateType": "anything", "can_override": false}, "e3": {"name": "e3", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b1": {"name": "b1", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(-10..-1)", "description": "", "templateType": "anything", "can_override": false}, "e1": {"name": "e1", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "d2": {"name": "d2", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "y", "a1", "a2", "b1", "b2", "c1", "c2", "d1", "d2", "e1", "e2", "e3", "f1", "f2"], "variable_groups": [], "functions": {"correctPoints": {"parameters": [], "type": "html", "language": "javascript", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('400px','400px',{boundingBox:[-11,11,11,-11],grid: true});\nvar board = div.board;\nquestion.board = board;\n\nvar a1 = Numbas.jme.unwrapValue(scope.variables.a1);\nvar a2 = Numbas.jme.unwrapValue(scope.variables.a2);\nvar b1 = Numbas.jme.unwrapValue(scope.variables.b1);\nvar b2 = Numbas.jme.unwrapValue(scope.variables.b2);\nvar c1 = Numbas.jme.unwrapValue(scope.variables.c1);\nvar c2 = Numbas.jme.unwrapValue(scope.variables.c2);\nvar d1 = Numbas.jme.unwrapValue(scope.variables.d1);\nvar d2 = Numbas.jme.unwrapValue(scope.variables.d2);\nvar e1 = Numbas.jme.unwrapValue(scope.variables.e1);\nvar e2 = Numbas.jme.unwrapValue(scope.variables.e2);\nvar f1 = Numbas.jme.unwrapValue(scope.variables.f1);\nvar f2 = Numbas.jme.unwrapValue(scope.variables.f2);\n\n\nvar a = board.create('point',[a1,a2],{name: 'A', size: 7, fillColor: 'limegreen' , strokeColor: 'yellow' , highlightFillColor: 'green', highlightStrokeColor: 'yellow', snapToGrid: true, showInfobox: true});\nvar b = board.create('point',[b1,b2],{name: 'B', size: 7, fillColor: 'limegreen' , strokeColor: 'yellow' , highlightFillColor: 'green', highlightStrokeColor: 'yellow', snapToGrid: true, showInfobox: true});\nvar c = board.create('point',[c1,c2],{name: 'C', size: 7, fillColor: 'limegreen' , strokeColor: 'yellow' , highlightFillColor: 'green', highlightStrokeColor: 'yellow', snapToGrid: true, showInfobox: true});\nvar d = board.create('point',[d1,d2],{name: 'D', size: 7, fillColor: 'limegreen' , strokeColor: 'yellow' , highlightFillColor: 'green', highlightStrokeColor: 'yellow', snapToGrid: true, showInfobox: true});\nvar e = board.create('point',[e1,e2],{name: 'E', size: 7, fillColor: 'limegreen' , strokeColor: 'yellow' , highlightFillColor: 'green', highlightStrokeColor: 'yellow', snapToGrid: true, showInfobox: true});\nvar f = board.create('point',[f1,f2],{name: 'F', size: 7, fillColor: 'limegreen' , strokeColor: 'yellow' , highlightFillColor: 'green', highlightStrokeColor: 'yellow', snapToGrid: true, showInfobox: true});\n\n/*\nquestion.signals.on('HTMLAttached',function(e) {\n ko.computed(function(){ \n var x = parseFloat(question.parts[0].gaps[0].display.studentAnswer());\n var y = parseFloat(question.parts[0].gaps[1].display.studentAnswer());\n if(!(isNaN(x) || isNaN(y)) && board.mode!=board.BOARD_MODE_DRAG) {\n a.moveTo([x,y],100);\n }\n });\n});\n*/\n\nreturn div;"}, "dragpoints": {"parameters": [], "type": "html", "language": "javascript", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('400px','400px',{boundingBox:[-11,11,11,-11],grid: true});\nvar board = div.board;\nquestion.board = board;\n\n//var x = Numbas.jme.unwrapValue(scope.variables.x);\n//var y = Numbas.jme.unwrapValue(scope.variables.y);\n\nvar a = board.create('point',[10,10],{name: 'A', size: 7, fillColor: 'blue' , strokeColor: 'lightblue' , highlightFillColor: 'lightblue', highlightStrokeColor: 'yellow', snapToGrid: true, showInfobox: false});\nvar b = board.create('point',[10,9],{name: 'B', size: 7, fillColor: 'blue' , strokeColor: 'lightblue' , highlightFillColor: 'lightblue', highlightStrokeColor: 'yellow',snapToGrid: true, showInfobox: false});\nvar c = board.create('point',[10,8],{name: 'C', size: 7, fillColor: 'blue' , strokeColor: 'lightblue' , highlightFillColor: 'lightblue', highlightStrokeColor: 'yellow',snapToGrid: true, showInfobox: false});\nvar d = board.create('point',[10,7],{name: 'D', size: 7, fillColor: 'blue' , strokeColor: 'lightblue' , highlightFillColor: 'lightblue', highlightStrokeColor: 'yellow',snapToGrid: true, showInfobox: false});\nvar e = board.create('point',[10,6],{name: 'E', size: 7, fillColor: 'blue' , strokeColor: 'lightblue' , highlightFillColor: 'lightblue', highlightStrokeColor: 'yellow',snapToGrid: true, showInfobox: false});\nvar f = board.create('point',[10,5],{name: 'F', size: 7, fillColor: 'blue' , strokeColor: 'lightblue' , highlightFillColor: 'lightblue', highlightStrokeColor: 'yellow',snapToGrid: true, showInfobox: false});\n\nquestion.points = {\n a:a,b:b,c:c,d:d,e:e,f:f\n}\n\na.on('drag',function(){\n Numbas.exam.currentQuestion.parts[0].gaps[0].display.studentAnswer(a.X());\n Numbas.exam.currentQuestion.parts[0].gaps[1].display.studentAnswer(a.Y());\n});\nb.on('drag',function(){\n Numbas.exam.currentQuestion.parts[1].gaps[0].display.studentAnswer(b.X());\n Numbas.exam.currentQuestion.parts[1].gaps[1].display.studentAnswer(b.Y());\n});\nc.on('drag',function(){\n Numbas.exam.currentQuestion.parts[2].gaps[0].display.studentAnswer(c.X());\n Numbas.exam.currentQuestion.parts[2].gaps[1].display.studentAnswer(c.Y());\n});\nd.on('drag',function(){\n Numbas.exam.currentQuestion.parts[3].gaps[0].display.studentAnswer(d.X());\n Numbas.exam.currentQuestion.parts[3].gaps[1].display.studentAnswer(d.Y());\n});\ne.on('drag',function(){\n Numbas.exam.currentQuestion.parts[4].gaps[0].display.studentAnswer(e.X());\n Numbas.exam.currentQuestion.parts[4].gaps[1].display.studentAnswer(e.Y());\n});\nf.on('drag',function(){\n Numbas.exam.currentQuestion.parts[5].gaps[0].display.studentAnswer(f.X());\n Numbas.exam.currentQuestion.parts[5].gaps[1].display.studentAnswer(f.Y());\n});\n\n/*\nquestion.signals.on('HTMLAttached',function(e) {\n ko.computed(function(){ \n var x = parseFloat(question.parts[0].gaps[0].display.studentAnswer());\n var y = parseFloat(question.parts[0].gaps[1].display.studentAnswer());\n if(!(isNaN(x) || isNaN(y)) && board.mode!=board.BOARD_MODE_DRAG) {\n a.moveTo([x,y],100);\n }\n });\n});\n*/\n\nreturn div;\n\n"}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {"mark": {"script": "console.log(this.question.points);\nthis.question.points.a.setAttribute({fillColor: this.credit==1 ? 'green' : 'red'});\n", "order": "after"}}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

{dragpoints()}

\n

Move the points as follows:

\n

A to $(\\var{a1},\\var{a2})$.

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a1}", "maxValue": "{a1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a2}", "maxValue": "{a2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {"mark": {"script": "console.log(this.question.points);\nthis.question.points.b.setAttribute({fillColor: this.credit==1 ? 'green' : 'red'});\n", "order": "after"}}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

B to $(\\var{b1},\\var{b2})$.

\n

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{b1}", "maxValue": "{b1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{b2}", "maxValue": "{b2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {"mark": {"script": "console.log(this.question.points);\nthis.question.points.c.setAttribute({fillColor: this.credit==1 ? 'green' : 'red'});\n", "order": "after"}}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

C to $(\\var{c1},\\var{c2})$.

\n

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{c1}", "maxValue": "{c1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{c2}", "maxValue": "{c2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {"mark": {"script": "console.log(this.question.points);\nthis.question.points.d.setAttribute({fillColor: this.credit==1 ? 'green' : 'red'});\n", "order": "after"}}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

D to $(\\var{d1},\\var{d2})$.

\n

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{d1}", "maxValue": "{d1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{d2}", "maxValue": "{d2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {"mark": {"script": "console.log(this.question.points);\nthis.question.points.e.setAttribute({fillColor: this.credit==1 ? 'green' : 'red'});", "order": "after"}}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

E to $(\\var{e1},\\var{e2})$.

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{e1}", "maxValue": "{e1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{e2}", "maxValue": "{e2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {"mark": {"script": "console.log(this.question.points);\nthis.question.points.f.setAttribute({fillColor: this.credit==1 ? 'green' : 'red'});", "order": "after"}}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

F to $(\\var{f1},\\var{f2})$.

\n

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{f1}", "maxValue": "{f1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{f2}", "maxValue": "{f2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "Simple percentages", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}], "metadata": {"description": "", "licence": "None specified"}, "variable_groups": [], "tags": [], "functions": {}, "advice": "", "rulesets": {}, "variables": {"a": {"description": "", "name": "a", "definition": "random(41..99#1)", "templateType": "randrange", "group": "Ungrouped variables"}}, "statement": "

Calculate the following percentages and give the exact answer in decimal form.

", "preamble": {"css": "", "js": ""}, "ungrouped_variables": ["a"], "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"vsetrangepoints": 5, "showpreview": true, "showFeedbackIcon": true, "checkvariablenames": false, "variableReplacements": [], "scripts": {}, "expectedvariablenames": [], "variableReplacementStrategy": "originalfirst", "prompt": "

Calculate  10% of {a}.

", "marks": 1, "type": "jme", "answer": "0.1{a}", "checkingtype": "absdiff", "showCorrectAnswer": true, "checkingaccuracy": 0.001, "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "showpreview": true, "showFeedbackIcon": true, "checkvariablenames": false, "variableReplacements": [], "scripts": {}, "expectedvariablenames": [], "variableReplacementStrategy": "originalfirst", "prompt": "

Calculate  5% of {a}.

", "marks": 1, "type": "jme", "answer": "0.05{a}", "checkingtype": "absdiff", "showCorrectAnswer": true, "checkingaccuracy": 0.001, "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "showpreview": true, "showFeedbackIcon": true, "checkvariablenames": false, "variableReplacements": [], "scripts": {}, "expectedvariablenames": [], "variableReplacementStrategy": "originalfirst", "prompt": "

Calculate  15% of {a}.

", "marks": 1, "type": "jme", "answer": "0.15{a}", "checkingtype": "absdiff", "showCorrectAnswer": true, "checkingaccuracy": 0.001, "vsetrange": [0, 1]}], "type": "question"}, {"name": "Angle facts", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [["question-resources/angle_on_a_line_WOoCxMv.svg", "/srv/numbas/media/question-resources/angle_on_a_line_WOoCxMv.svg"], ["question-resources/scalene.svg", "/srv/numbas/media/question-resources/scalene.svg"], ["question-resources/circle_angles.svg", "/srv/numbas/media/question-resources/circle_angles.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Calculate the missing angles in the diagrams below.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(25..44)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(110..130)", "description": "", "templateType": "anything", "can_override": false}, "q": {"name": "q", "group": "Ungrouped variables", "definition": "random(95..129)", "description": "", "templateType": "anything", "can_override": false}, "p": {"name": "p", "group": "Ungrouped variables", "definition": "random(11..29)", "description": "", "templateType": "anything", "can_override": false}, "x1": {"name": "x1", "group": "Ungrouped variables", "definition": "random(18..44)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(75..95 except 90)", "description": "", "templateType": "anything", "can_override": false}, "r": {"name": "r", "group": "Ungrouped variables", "definition": "180-(p+q)", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "360-(a+b+c)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x1", "a", "b", "c", "y", "p", "q", "r"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

These two angles lie on a straight line.  This picture is not drawn accurately!

\n

\n

Given that the smaller angle is $\\var{x1}^{\\circ}$, calculate larger angle $y$.

", "minValue": "180-x1", "maxValue": "180-x1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Angles around a point.  This picture is not drawn accurately!

\n

\n

Three angles are given: $\\var{a}^{\\circ}$, $\\var{b}^{\\circ}$ and $\\var{c}^{\\circ}$.

\n

Calculate the missing angle, $y$.

", "minValue": "360-(a+b+c)", "maxValue": "360-(a+b+c)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Angles in triangle.  This picture is not drawn accurately!

\n

\n

Two given angles are $\\var{p}^{\\circ}$ and $\\var{q}^{\\circ}$

\n

Calculate the other angle, $x$.

", "minValue": "{r}", "maxValue": "{r}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Listening test", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}], "rulesets": {}, "parts": [{"displayColumns": 0, "unitTests": [], "type": "1_n_2", "prompt": "

Where is the group going to within the reactor building?

", "minMarks": 0, "matrix": ["1", 0, 0, 0, 0], "choices": ["Central Hall", "Roof", "Basement", "Water tanks", "Reactor core"], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "showCellAnswerState": true, "customName": "", "customMarkingAlgorithm": "", "marks": 0, "extendBaseMarkingAlgorithm": true, "shuffleChoices": false, "displayType": "radiogroup", "showCorrectAnswer": true, "showFeedbackIcon": true, "distractors": ["", "", "", "", ""], "maxMarks": 0, "scripts": {}, "variableReplacements": []}, {"unitTests": [], "matchMode": "regex", "extendBaseMarkingAlgorithm": true, "displayAnswer": "None", "type": "patternmatch", "prompt": "

How much fuel remains in the core?

", "marks": 1, "customName": "", "variableReplacements": [], "showCorrectAnswer": true, "useCustomName": false, "variableReplacementStrategy": "originalfirst", "answer": "none|nowt|zero|zilch|nothing", "customMarkingAlgorithm": "", "scripts": {}, "showFeedbackIcon": true}], "tags": [], "metadata": {"licence": "None specified", "description": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "variable_groups": [], "preamble": {"css": "", "js": ""}, "variables": {}, "advice": "", "statement": "

Watch the video and answer the questions below!

\n

", "ungrouped_variables": [], "functions": {}, "type": "question"}, {"name": "Simultaneous equations (harder)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}, {"name": "Amy Barker", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4520/"}], "tags": [], "metadata": {"description": "

Solve a pair of simultaneous equations.

", "licence": "None specified"}, "statement": "

Simultaneous equations have two equations with two unknowns.

", "advice": "

We can't immediately eliminate $x$ or $y$ from each equation so there are couple of ways to approach this.  One possibility is to multiply each equation by a constant so that we can do elimination.

\n

For example: multiply the first equation by $\\var{c}$ and the second equation by $\\simplify{-{a}}$:  \\[ \\simplify{ {c}{a}x+{c}{b}y = {c}{b1}} \\\\ \\simplify{ {-a}{c}x+{-a}{d}y = {-a}{b2}} \\] Now we have two equations with the same coefficient on $x$.

\n

We can do elimination (of $x$) by adding the equations. \\[ \\simplify{{c}{b}y + {-a}{d}y} = \\simplify{{c}{b1}} + \\simplify{{-a}{b2} } \\\\ \\simplify{({c}{b}+{-a}{d})y ={c}{b1}+{-a}{b2} }  \\]

\n

Therefore $y=\\var{y}$.

\n

Substitute this value into one of the original equations.  For example, using the first: \\[ \\simplify{ {a}x+{b}{y} = {b1}} \\\\ \\simplify{ {a}x = {b1} - {b}{y} } \\]

\n

Therefore $x=\\var{x}$.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "random(-10 .. 10#1)", "description": "", "templateType": "randrange", "can_override": false}, "c": {"name": "c", "group": "Coefficients", "definition": "random(-10 .. 10#1)", "description": "", "templateType": "randrange", "can_override": false}, "d": {"name": "d", "group": "Coefficients", "definition": "random(-10 .. 10#1)", "description": "", "templateType": "randrange", "can_override": false}, "b1": {"name": "b1", "group": "RHS", "definition": "a*x+b*y", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Coefficients", "definition": "random(-10 .. 10#1)", "description": "", "templateType": "randrange", "can_override": false}, "b": {"name": "b", "group": "Coefficients", "definition": "random(-10 .. 10#1)", "description": "", "templateType": "randrange", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "random(-10 .. 10#1)", "description": "", "templateType": "randrange", "can_override": false}, "b2": {"name": "b2", "group": "RHS", "definition": "c*x+d*y", "description": "", "templateType": "anything", "can_override": false}, "det": {"name": "det", "group": "RHS", "definition": "a*d-b*c", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "abs(a)>1 and abs(b)>1 and abs(c)>1 and abs(d)>1 and det<>0", "maxRuns": "250"}, "ungrouped_variables": ["x", "y"], "variable_groups": [{"name": "Coefficients", "variables": ["a", "b", "c", "d"]}, {"name": "RHS", "variables": ["b1", "b2", "det"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

Solve the equations \\[ \\begin{eqnarray} \\simplify[!noLeadingMinus]{ {a}x + {b}y } & = & \\var{b1} \\\\ \\simplify[noLeadingMinus]{{c}x + {d}y} &=& \\var{b2}  \\end{eqnarray}  \\]

\n

Solutions  $x = $ [[0]] ,  $y = $ [[1]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "1.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "x", "maxValue": "x", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "1.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "y", "maxValue": "y", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}]}], "type": "exam", "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}], "extensions": ["chemistry", "jsxgraph"], "custom_part_types": [], "resources": [["question-resources/angle_on_a_line_WOoCxMv.svg", "/srv/numbas/media/question-resources/angle_on_a_line_WOoCxMv.svg"], ["question-resources/scalene.svg", "/srv/numbas/media/question-resources/scalene.svg"], ["question-resources/circle_angles.svg", "/srv/numbas/media/question-resources/circle_angles.svg"]]}