// Numbas version: exam_results_page_options {"name": "Quadratics - Completing the Square", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Quadratics - Completing the Square", "tags": [], "metadata": {"description": "Write a quadratic in completed square form. Coefficient of x^2 is 1.", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Let $f(x) = x^2 - ${b}$x + ${c}

", "advice": "

When completing the square the value of $h$ can be found by dividing {b} by 2.

\n

$h = $ {h}

\n

To find $k$, try expanding the bracket and notice what is required to correct the constant term.

\n

$(x-${h}$)^2 = x^2 - 2\\times${h}$x +${h}$^2$

\n

Therefore $k = $ {c} $-${h}$^2$

\n

$k = $ {k}

", "rulesets": {}, "extensions": [], "variables": {"b": {"name": "b", "group": "Ungrouped variables", "definition": "2*h", "description": "

coefficient of x is negative this value.

", "templateType": "anything"}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "h^2+k", "description": "

constant term in quadratic function

", "templateType": "anything"}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(1 .. 5#1)", "description": "

h when completing the square and giving function in form (x-h)^2 + k

", "templateType": "randrange"}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random(2 .. 8#1)", "description": "

k when completing the square and giving function in form (x-h)^2 + k

", "templateType": "randrange"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["b", "c", "h", "k"], "variable_groups": [], "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": "

Write the function in the form $f(x) = (x-h)^2 + k$      $h,k \\in $$Z^+$ 

\n

\n

$f(x) = (x-$[[0]]$)^2 +$ [[1]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{h}", "maxValue": "{h}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en", "eu", "plain-eu"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{k}", "maxValue": "{k}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en", "eu", "plain-eu"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Johnathan Gregg", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4974/"}]}]}], "contributors": [{"name": "Johnathan Gregg", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4974/"}]}