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

Simple questions on interval notation. If you are not randomising the order of your questions please turn on randomise choices in these questions.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Which of the following best represents the interval $(\\var{a},\\var{b}]$?

", "advice": "

The closed (square) bracket in $(\\var{a},\\var{b}]$ signifies that the endpoint $\\var{b}$ is included in the interval whereas, the open (round) bracket signifies that the endpoint $\\var{a}$ is not included. This is known as the half-closed interval (or half-open interval) $(\\var{a},\\var{b}]$.

\n

\n

When we graph the interval, endpoints that are not included are represented by circles that are not filled in, whereas, endpoints that are included are represented by circles that are filled in.

", "rulesets": {}, "extensions": ["jsxgraph"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"delta": {"name": "delta", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "

delta

", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "a+delta", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..7)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "delta"], "variable_groups": [], "functions": {"closedopen": {"parameters": [], "type": "html", "language": "javascript", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('600px','100px',{boundingBox:[0.5,1,12.5,-1],grid:false,axis:false});\nvar board = div.board;\n\n//reordring layers\nJXG.Options.layer['circle'] = 7;\nJXG.Options.layer['line'] = 6;\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 fixed:true\n});\n\n\na = Numbas.jme.unwrapValue(scope.variables.a);\nb = Numbas.jme.unwrapValue(scope.variables.b);\n\n\n//board.create('point',[x0,y0],{fixed:true});\n//board.create('point',[x1,y1],{fixed:true});\nboard.create('line',[[a+0.2,0],[b-0.2,0]],{strokeColor:'#00ff00',strokeWidth:2,fixed:true,straightFirst:false, straightLast:false,highlightStrokeColor:'#00ff00'});\nboard.createElement('circle',[[a,0],[a+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fillColor:'#00ff00',fillOpacity:2,fixed:true,highlightStrokeColor:'#00ff00',highlightfillcolor:'#00ff00'});\nboard.createElement('circle',[[b,0],[b+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fixed:true,highlightStrokeColor:'#00ff00'});\n\n\nreturn div;"}, "open": {"parameters": [], "type": "html", "language": "javascript", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('600px','100px',{boundingBox:[0.5,1,12.5,-1],grid:false,axis:false});\nvar board = div.board;\n\n\n//reordring layers\nJXG.Options.layer['circle'] = 7;\nJXG.Options.layer['line'] = 6;\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 fixed:true\n});\n\n\na = Numbas.jme.unwrapValue(scope.variables.a);\nb = Numbas.jme.unwrapValue(scope.variables.b);\n\n\n//board.create('point',[x0,y0],{fixed:true});\n//board.create('point',[x1,y1],{fixed:true});\nboard.create('line',[[a+0.2,0],[b-0.2,0]],{strokeColor:'#00ff00',strokeWidth:2,fixed:true,straightFirst:false, straightLast:false,highlightStrokeColor:'#00ff00'});\nboard.createElement('circle',[[a,0],[a+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fixed:true,highlightStrokeColor:'#00ff00'});\nboard.createElement('circle',[[b,0],[b+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fixed:true,highlightStrokeColor:'#00ff00'});\n\n\nreturn div;"}, "closed": {"parameters": [], "type": "html", "language": "javascript", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('600px','100px',{boundingBox:[0.5,1,12.5,-1],grid:false,axis:false});\nvar board = div.board;\n\n//reordring layers\nJXG.Options.layer['circle'] = 7;\nJXG.Options.layer['line'] = 6;\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 fixed:true\n});\n\n\na = Numbas.jme.unwrapValue(scope.variables.a);\nb = Numbas.jme.unwrapValue(scope.variables.b);\n\n\n//board.create('point',[x0,y0],{fixed:true});\n//board.create('point',[x1,y1],{fixed:true});\nboard.create('line',[[a+0.2,0],[b-0.2,0]],{strokeColor:'#00ff00',strokeWidth:2,fixed:true,straightFirst:false, straightLast:false,highlightStrokeColor:'#00ff00'});\nboard.createElement('circle',[[a,0],[a+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fillColor:'#00ff00',fillOpacity:2,fixed:true,highlightStrokeColor:'#00ff00',highlightfillcolor:'#00ff00'});\nboard.createElement('circle',[[b,0],[b+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fillColor:'#00ff00',fillOpacity:2,fixed:true,highlightStrokeColor:'#00ff00',highlightfillcolor:'#00ff00'});\n\n\nreturn div;"}, "openclosed": {"parameters": [], "type": "html", "language": "javascript", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('600px','100px',{boundingBox:[0.5,1,12.5,-1],grid:false,axis:false});\nvar board = div.board;\n\n//reordring layers\nJXG.Options.layer['circle'] = 7;\nJXG.Options.layer['line'] = 6;\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 fixed:true\n});\n\n\na = Numbas.jme.unwrapValue(scope.variables.a);\nb = Numbas.jme.unwrapValue(scope.variables.b);\n\n\n//board.create('point',[x0,y0],{fixed:true});\n//board.create('point',[x1,y1],{fixed:true});\nboard.create('line',[[a+0.2,0],[b-0.2,0]],{strokeColor:'#00ff00',strokeWidth:2,fixed:true,straightFirst:false, straightLast:false,highlightStrokeColor:'#00ff00'});\nboard.createElement('circle',[[a,0],[a+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fixed:true,highlightStrokeColor:'#00ff00'});\nboard.createElement('circle',[[b,0],[b+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fillColor:'#00ff00',fillOpacity:2,fixed:true,highlightStrokeColor:'#00ff00',highlightfillcolor:'#00ff00'});\n\n\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, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["

{open()}

", "

{closed()}

", "

{openclosed()}

", "

{closedopen()}

"], "matrix": ["0", "0", "1", "0"], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}