// Numbas version: exam_results_page_options {"name": "gap in breuk", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

Calculate the following power.

\n

If you think the answer should be negative then a negative sign should be entered in the denominator.

\n

", "extensions": [], "parts": [{"showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "prompt": "

$(-\\var{a})^{-\\var{b}}=\\ $ 1[[0]].

", "gaps": [{"showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "maxValue": "(-a)^b", "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacements": [], "minValue": "(-a)^b", "type": "numberentry", "showCorrectAnswer": true, "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false, "allowFractions": false, "marks": 1, "notationStyles": ["plain", "en", "si-en"]}], "scripts": {}, "type": "gapfill", "variableReplacements": [], "marks": 0}], "variable_groups": [], "advice": "

The correct calculation is $(-\\var{a})^{-\\var{b}}=\\dfrac{1}{(-\\var{a})^{\\var{b}}}=\\dfrac{1}{\\boxed{\\var{(-a)^b}}}$.

", "variablesTest": {"condition": "a<>b", "maxRuns": 100}, "functions": {}, "name": "gap in breuk", "tags": [], "variables": {"a": {"group": "Ungrouped variables", "name": "a", "description": "

This is the base.

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

This is the absolute value of the exponent.

", "definition": "random(2..7)", "templateType": "anything"}}, "ungrouped_variables": ["a", "b"], "preamble": {"js": "document.createElement('fraction');\ndocument.createElement('numerator');\ndocument.createElement('denominator');", "css": "fraction {\n display: inline-block;\n vertical-align: middle;\n}\nfraction > numerator, fraction > denominator {\n float: left;\n width: 100%;\n text-align: center;\n line-height: 2.5em;\n}\nfraction > numerator {\n border-bottom: 1px solid;\n padding-bottom: 5px;\n}\nfraction > denominator {\n padding-top: 5px;\n}\nfraction input {\n line-height: 1em;\n}\n\nfraction .part {\n margin: 0;\n}\n\n.table-responsive, .fractiontable {\n display:inline-block;\n}\n.fractiontable {\n padding: 0; \n border: 0;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n border-bottom: 1px solid black; \n text-align: center;\n}\n\n\n.fractiontable tr {\n height: 3em;\n}\n"}, "metadata": {"description": "

This question tests a student's ability to raise a negative base to a negative exponent.

", "licence": "Creative Commons Attribution 4.0 International"}, "rulesets": {"std": ["all"]}, "type": "question", "contributors": [{"name": "Johan Maertens", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1301/"}]}]}], "contributors": [{"name": "Johan Maertens", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1301/"}]}