// Numbas version: exam_results_page_options {"name": "Negatives: combined question", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["n", "power", "mult1", "mult2", "ans1"], "name": "Negatives: combined question", "tags": ["negative numbers", "Negative Numbers", "negatives"], "advice": "", "rulesets": {}, "parts": [{"prompt": "

$\\displaystyle\\var{n[0]}-(\\var{n[1]})--\\var{n[2]}\\times(\\var{n[3]})+\\left(\\frac{\\var{n[4]*n[4]}}{\\var{n[4]}}\\right)+\\var{mult1}(-1)^\\var{power}+\\var{mult2}(-1)^\\var{power+1}$ = [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans1}", "minValue": "{ans1}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

Complete the following without the use of a calculator:

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"ans1": {"definition": "n[0]-n[1]+n[2]*n[3]+n[4]+mult1*(-1)^power+mult2*(-1)^(power+1)", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "mult1": {"definition": "random(4..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "mult1", "description": ""}, "n": {"definition": "shuffle(-12..-2)[0..5]", "templateType": "anything", "group": "Ungrouped variables", "name": "n", "description": ""}, "power": {"definition": "random(2..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "power", "description": ""}, "mult2": {"definition": "random(4..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "mult2", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "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/"}]}