// 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": [{"type": "question", "functions": {}, "name": "Negatives: combined question", "variable_groups": [], "tags": ["negative numbers", "Negative Numbers", "negatives"], "variables": {"ans1": {"definition": "n[0]-n[1]+n[2]*n[3]+n[4]+mult1*(-1)^power+mult2*(-1)^(power+1)", "name": "ans1", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "mult2": {"definition": "random(4..12)", "name": "mult2", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "mult1": {"definition": "random(4..12)", "name": "mult1", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "n": {"definition": "shuffle(-12..-2)[0..5]", "name": "n", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "power": {"definition": "random(2..12)", "name": "power", "description": "", "group": "Ungrouped variables", "templateType": "anything"}}, "showQuestionGroupNames": false, "preamble": {"js": "", "css": ""}, "question_groups": [{"pickQuestions": 0, "name": "", "pickingStrategy": "all-ordered", "questions": []}], "ungrouped_variables": ["n", "power", "mult1", "mult2", "ans1"], "advice": "", "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]]

", "showCorrectAnswer": true, "gaps": [{"type": "numberentry", "showCorrectAnswer": true, "variableReplacements": [], "allowFractions": false, "minValue": "{ans1}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "scripts": {}, "maxValue": "{ans1}", "showPrecisionHint": false, "marks": 1}], "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "variableReplacements": [], "marks": 0}], "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Complete the following without the use of a calculator:

", "variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "contributors": [{"name": "Marlon Arcila", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/321/"}]}]}], "contributors": [{"name": "Marlon Arcila", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/321/"}]}