// Numbas version: exam_results_page_options {"name": "Portfolio Task 2 Q2", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Portfolio Task 2 Q2", "tags": [], "metadata": {"description": "

Points of intersection

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

Consider the following linear models for demand and supply of a specific good.

\n

$D\\ =\\var{r} -\\ P$

\n

$S\\ =\\var{s}P-\\var{t}$

", "advice": "", "rulesets": {}, "extensions": ["jsxgraph"], "variables": {"x3": {"name": "x3", "group": "Ungrouped variables", "definition": "100", "description": "", "templateType": "anything"}, "y0": {"name": "y0", "group": "Ungrouped variables", "definition": "t/s", "description": "", "templateType": "anything"}, "x1": {"name": "x1", "group": "Ungrouped variables", "definition": "100", "description": "", "templateType": "anything"}, "y2": {"name": "y2", "group": "Ungrouped variables", "definition": "r", "description": "", "templateType": "anything"}, "x0": {"name": "x0", "group": "Ungrouped variables", "definition": "0", "description": "", "templateType": "anything"}, "s": {"name": "s", "group": "Ungrouped variables", "definition": "random(2 .. 5#1)", "description": "", "templateType": "randrange"}, "P1": {"name": "P1", "group": "Ungrouped variables", "definition": "r-Q1", "description": "

Equilibrium price on supply and demand graph

", "templateType": "anything"}, "x2": {"name": "x2", "group": "Ungrouped variables", "definition": "0", "description": "", "templateType": "anything"}, "y1": {"name": "y1", "group": "Ungrouped variables", "definition": "(100+t)/(s)", "description": "", "templateType": "anything"}, "y3": {"name": "y3", "group": "Ungrouped variables", "definition": "r-100", "description": "", "templateType": "anything"}, "t": {"name": "t", "group": "Ungrouped variables", "definition": "random(10 .. 50#5)", "description": "", "templateType": "randrange"}, "r": {"name": "r", "group": "Ungrouped variables", "definition": "random(100 .. 200#10)", "description": "", "templateType": "randrange"}, "Q1": {"name": "Q1", "group": "Ungrouped variables", "definition": "(r*s-t)/(1+s)", "description": "

Equilibrium quantity on demand and supply graph

", "templateType": "anything"}, "Q2": {"name": "Q2", "group": "Ungrouped variables", "definition": "(r*s+t)", "description": "", "templateType": "anything"}, "P2": {"name": "P2", "group": "Ungrouped variables", "definition": "r-Q2", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["r", "s", "t", "x0", "y0", "x1", "y1", "x2", "y2", "x3", "y3", "Q1", "P1", "Q2", "P2"], "variable_groups": [], "functions": {"dragpoint": {"parameters": [], "type": "html", "language": "javascript", "definition": "// set up the board\nvar xmin = -5;\nvar xmax = 150;\nvar ymin = -5;\nvar ymax = 200;\n\nvar div = Numbas.extensions.jsxgraph.makeBoard('500px','500px',\n {boundingBox: [xmin,ymax,xmax,ymin],\n grid:true,labels:true});\nvar board = div.board;\n\n// create the x-axis and y-axis\nvar xaxis = board.create('axis',[[0,0],[1,0]]);\n\n// create the y-axis\nvar yaxis = board.create('axis',[[0,0],[0,1]], );\n\n\n\nvar a = board.create('point',[0,0],{size:3});\nvar b = board.create('point',[10,0],{size:3});\nvar c = board.create('point',[20,0],{size:3});\nvar d = board.create('point',[30,0],{size:3});\n\n\na.on('drag',function(){\n var x0 = Numbas.math.niceNumber(a.X());\n var y0 = Numbas.math.niceNumber(a.Y());\n Numbas.exam.currentQuestion.parts[0].gaps[0].display.studentAnswer([[x0,y0]]);\n});\nb.on('drag',function(){\n var x0 = Numbas.math.niceNumber(b.X());\n var y0 = Numbas.math.niceNumber(b.Y());\n Numbas.exam.currentQuestion.parts[0].gaps[1].display.studentAnswer([[x0,y0]]);\n});\nc.on('drag',function(){\n var x0 = Numbas.math.niceNumber(c.X());\n var y0 = Numbas.math.niceNumber(c.Y());\n Numbas.exam.currentQuestion.parts[0].gaps[2].display.studentAnswer([[x0,y0]]);\n});\nd.on('drag',function(){\n var x0 = Numbas.math.niceNumber(d.X());\n var y0 = Numbas.math.niceNumber(d.Y());\n Numbas.exam.currentQuestion.parts[0].gaps[3].display.studentAnswer([[x0,y0]]);\n});\n\n\nreturn div;\n\n\n"}}, "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": "

{dragpoint()}

\n

Plot the following points of a demand and supply graph.

\n

\n

By filling in a table like the one below, drag the points A to D to the correct location.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PointA(supply)B(supply)C(demand)D(demand)
$x$01000100
$y$
\n


To be marked correctly, you only need to move the points to within 1 unit of the exact location.

", "gaps": [{"type": "matrix", "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, "correctAnswer": "matrix([x0,y0])", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": "2", "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}, {"type": "matrix", "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, "correctAnswer": "matrix([x1,y1])", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": "2", "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}, {"type": "matrix", "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, "correctAnswer": "matrix([x2,y2])", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": "2", "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}, {"type": "matrix", "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, "correctAnswer": "matrix([x3,y3])", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": "2", "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}], "sortAnswers": false}, {"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": "

Find the equilibrium price and the equilibrium quantity.

\n

Equilibrium price = [[0]]

\n

Equilibrium quantity = [[1]]

", "gaps": [{"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, "minValue": "{P1}", "maxValue": "{P1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "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, "minValue": "{Q1}", "maxValue": "{Q1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"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": "

A recent industry development has affected the supply.  Supply is now modelled by the equation:

\n

$S=\\var{t}\\ +\\ \\var{s}P$

\n

Determine the new equilibrium quantity and price.

\n

New equilibrium quantity = [[0]]

\n

New equilibrium price = [[1]]

\n

", "gaps": [{"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, "minValue": "{Q2}", "maxValue": "{Q2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "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, "minValue": "{P2}", "maxValue": "{P2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "m_n_x", "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": "

How has the industry development affected the following:

", "minMarks": 0, "maxMarks": "", "minAnswers": 0, "maxAnswers": "3", "shuffleChoices": true, "shuffleAnswers": true, "displayType": "radiogroup", "warningType": "warn", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["Demand", "Supply", "Equlibrium price"], "matrix": [[0, 0, "1"], [0, "1", 0], ["1", 0, 0]], "layout": {"type": "all", "expression": ""}, "answers": ["Increased", "Decreased", "Stayed the same"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}, {"name": "Ruth Allison", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2543/"}]}]}], "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}, {"name": "Ruth Allison", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2543/"}]}