// 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": [{"extensions": ["jsxgraph"], "tags": [], "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

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

"}, "variables": {"a": {"description": "", "definition": "random(2..7)", "templateType": "anything", "group": "Ungrouped variables", "name": "a"}, "b": {"description": "", "definition": "a+delta", "templateType": "anything", "group": "Ungrouped variables", "name": "b"}, "delta": {"description": "

delta

", "definition": "random(2..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "delta"}}, "ungrouped_variables": ["a", "b", "delta"], "statement": "

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

", "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "name": "Intervals - graphing [a,b)", "parts": [{"type": "1_n_2", "minMarks": 0, "scripts": {}, "matrix": ["0", "0", 0, "1"], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "maxMarks": 0, "displayColumns": "1", "showCorrectAnswer": true, "shuffleChoices": false, "choices": ["

{open()}

", "

{closed()}

", "

{openclosed()}

", "

{closedopen()}

"], "distractors": ["", "", "", ""], "marks": 0, "displayType": "radiogroup"}], "preamble": {"css": "", "js": ""}, "functions": {"openclosed": {"type": "html", "language": "javascript", "parameters": [], "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;"}, "open": {"type": "html", "language": "javascript", "parameters": [], "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": {"type": "html", "language": "javascript", "parameters": [], "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;"}, "closedopen": {"type": "html", "language": "javascript", "parameters": [], "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;"}}, "advice": "

The closed (square) bracket in $[\\var{a},\\var{b})$ signifies that the endpoint $\\var{a}$ is included in the interval whereas, the open (round) bracket signifies that the endpoint $\\var{b}$ 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.

", "type": "question", "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/"}]}