// Numbas version: exam_results_page_options {"name": "HELM Book 1.1.5 exercises", "metadata": {"description": "

HELM Book 1.1.5 exercises

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": true, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Plot points on a number line", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", ""], "variable_overrides": [[], [], []], "questions": [{"name": "Identify point on number line (decimal version)", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

The student is shown a GeoGebra worksheet containing a single point at the origin. They must move the point to the required coordinates.

\n

The part is marked as correct if the point is in the right position.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

{app}

\n

Copyright © International GeoGebra Institute, 2013, https://www.geogebra.org

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"app": {"name": "app", "group": "Ungrouped variables", "definition": "geogebra_applet(\n \"snzz5xmd\"\n,\n [\n \n ],\n [\n [\"C\", \"p0\"]\n ]\n)", "description": "", "templateType": "anything", "can_override": false}, "target_position": {"name": "target_position", "group": "Ungrouped variables", "definition": "vector(value,0)", "description": "", "templateType": "anything", "can_override": false}, "value": {"name": "value", "group": "Ungrouped variables", "definition": "random(-8..8 #0.1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["app", "target_position", "value"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "extension", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "pos:\n value(app,\"C\")\n\nmark:\nfeedback(\"The point is at {precround(pos[0],3)}.\");\n if(withintolerance(target_position[0],pos[0],0.005),\n correct(\"Your answer is correct to within a tolerance of 0.005. \"),\n incorrect(\"Your answer is at least 0.005 away from the correct position.\"))\n\ninterpreted_answer:\n pos", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Move the point to $\\var{value}$. Move the point to close to the correct location, then use the Zoom In button to very accurately place the point. Click the \"Submit answer\" button when you have finished.

"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Identify point on number line (fraction version)", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

The student is shown a GeoGebra worksheet containing a single point at the origin. They must move the point to the required coordinates.

\n

The part is marked as correct if the point is in the right position.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

{app}

\n

Copyright © International GeoGebra Institute, 2013, https://www.geogebra.org

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"app": {"name": "app", "group": "Ungrouped variables", "definition": "geogebra_applet(\n \"snzz5xmd\"\n,\n [\n \n ],\n [\n [\"C\", \"p0\"]\n ]\n)", "description": "", "templateType": "anything", "can_override": false}, "target_position": {"name": "target_position", "group": "Ungrouped variables", "definition": "vector(value,0)", "description": "", "templateType": "anything", "can_override": false}, "value": {"name": "value", "group": "Ungrouped variables", "definition": "numerator/denominator", "description": "", "templateType": "anything", "can_override": false}, "numerator": {"name": "numerator", "group": "Ungrouped variables", "definition": "random(-10..10 except [0, denominator])", "description": "", "templateType": "anything", "can_override": false}, "denominator": {"name": "denominator", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["app", "target_position", "value", "numerator", "denominator"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "extension", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "pos:\n value(app,\"C\")\n\nmark:\nfeedback(\"The point is at \\\\(\\\\var{latex(string(rational(precround(x(app,'C'),3))))}\\\\).\");\n if(withintolerance(target_position[0],pos[0],0.005),\n correct(\"Your answer is correct to within a tolerance of \\\\(\\\\frac{1}{200}\\\\).\" ),\n incorrect(\"Your answer is at least \\\\(\\\\frac{1}{200}\\\\) away from the correct position.\"))\n\ninterpreted_answer:\n pos", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Move the point to $\\frac{\\var{numerator}}{\\var{denominator}}$. Move the point to close to the correct location, then use the Zoom In button to very accurately place the point. Click the \"Submit answer\" button when you have finished.

"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Identify point on number line (irrational version)", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

The student is shown a GeoGebra worksheet containing a single point at the origin. They must move the point to the required coordinates.

\n

The part is marked as correct if the point is in the right position.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

{app}

\n

Copyright © International GeoGebra Institute, 2013, https://www.geogebra.org

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"app": {"name": "app", "group": "Ungrouped variables", "definition": "geogebra_applet(\n \"snzz5xmd\"\n,\n [\n \n ],\n [\n [\"C\", \"p0\"]\n ]\n)", "description": "", "templateType": "anything", "can_override": false}, "target_position": {"name": "target_position", "group": "Ungrouped variables", "definition": "vector(value,0)", "description": "", "templateType": "anything", "can_override": false}, "value": {"name": "value", "group": "Ungrouped variables", "definition": "[-pi,-sqrt(3),-sqrt(2),sqrt(2),sqrt(3),pi][idx]", "description": "", "templateType": "anything", "can_override": false}, "dispvalue": {"name": "dispvalue", "group": "Ungrouped variables", "definition": "[latex(\"-\\\\pi\"),latex(\"-\\\\sqrt{(3)}\"),latex(\"-\\\\sqrt{(2)}\"),latex(\"\\\\sqrt{(2)}\"),latex(\"\\\\sqrt{(3)}\"),latex(\"\\\\pi\")][idx]", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..5)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["app", "target_position", "value", "dispvalue", "idx"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "extension", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "pos:\n value(app,\"C\")\n\nmark:\nfeedback(\"The point is at {precround(pos[0],3)}.\");\n if(withintolerance(target_position[0],pos[0],0.005),\n correct(\"Your answer is correct to within a tolerance of 0.005. \"),\n incorrect(\"Your answer is at least 0.005 away from the correct position.\"))\n\ninterpreted_answer:\n pos", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Move the point to $\\var{dispvalue}$. Move the point to close to the correct location, then use the Zoom In button to very accurately place the point. Click the \"Submit answer\" button when you have finished.

"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "Signed multiplication and division", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", ""], "variable_overrides": [[], []], "questions": [{"name": "signed multiplication", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Multiply two numbers, at least one of which is negative.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Calculate the following:

", "advice": "

Since one value is negative, the answer will be negative. $\\var{v1}\\times\\var{v2}=\\var{v1*v2}$

\n

Since both values are negative, the answer will be positive. $\\var{v1}\\times\\var{v2}=\\var{v1*v2}$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"v1": {"name": "v1", "group": "Ungrouped variables", "definition": "random(-15..15 except [0,1])", "description": "", "templateType": "anything", "can_override": false}, "v2": {"name": "v2", "group": "Ungrouped variables", "definition": "if(v1<0,random(-15..15 except [0,1]),random(-15..-1))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["v1", "v2"], "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": "

$\\var{v1}\\times\\var{v2} = $ [[0]]

", "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": "v1*v2", "maxValue": "v1*v2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "signed division", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Divide two numbers, at least one of which is negative. The answer is always an integer.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Calculate the following:

", "advice": "

Since one value is negative, the answer will be negative. $\\dfrac{\\var{v1}}{\\var{v2}}=\\var{v1/v2}$

\n

Since both values are negative, the answer will be positive. $\\dfrac{\\var{v1}}{\\var{v2}}=\\var{v1/v2}$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"v2": {"name": "v2", "group": "Ungrouped variables", "definition": "random(-15..15 except [0,1])", "description": "", "templateType": "anything", "can_override": false}, "v1": {"name": "v1", "group": "Ungrouped variables", "definition": "if(v2<0,v2*random(-9..9 except [0,1]),v2*random(-9..-1))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["v2", "v1"], "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": "

$\\dfrac{\\var{v1}}{\\var{v2}} = $ [[0]]

", "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": "v1/v2", "maxValue": "v1/v2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "BODMAS", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", ""], "variable_overrides": [[], [], []], "questions": [{"name": "Simple BODMAS", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

An order of operation question using +,-,* with signed integers, with up to 4 variables.

\n

The questions are the exercises from Q3 of HELM Book 1.1.5

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Evaluate: 

", "advice": "

Use BODMAS to compute brackets first, then $\\times$ and $\\div$, then $+$ and $-$. Remember that subtracting a negative number is the same as adding a positive number.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"v1,v2,v3,v4": {"name": "v1,v2,v3,v4", "group": "Ungrouped variables", "definition": "repeat(random(1..15),4)", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..12)", "description": "", "templateType": "anything", "can_override": false}, "expr": {"name": "expr", "group": "Ungrouped variables", "definition": "expression([v1 + \"+\" + v2 + \"*\" + v3,\n v1 + \"-\" + v2 + \"-\" + v3,\n v1 + \"+\" + v2 + \"-\" + v3,\n v1 + \"-\" + v2 + \"*\" + v3,\n v1 + \"*\" + v2 + \"-\" + v3,\n \"(\" + v1 + \"/\" + v2 + \")+\" + v3,\n v1 + \"/\" + v2 + \"+\" + v3,\n v1 + \"+\" + v2 + \"-\" + v3 + \"-\" + v4,\n v1 + \"*\" + v2 + \"+\" + v3 + \"*\" + v4,\n \"-(-\" + v1 + \")\",\n v1 + \"-(-\" + v1 + \")\",\n \"-\" + v1 + \"-(-\" + v1 + \")\",\n \"-\" + v1 + \"+(-\" + v1 + \")\"\n ][idx])", "description": "", "templateType": "anything", "can_override": false}, "dexpr": {"name": "dexpr", "group": "Ungrouped variables", "definition": "latex(expr)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["v1,v2,v3,v4", "idx", "expr", "dexpr"], "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": "

$\\var{dexpr}$= [[0]]

", "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": "eval(expr)", "maxValue": "eval(expr)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Simple BODMAS", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

An order of operation question using +,-,* with signed integers, with up to 4 variables.

\n

The questions are the exercises from Q3 of HELM Book 1.1.5

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Evaluate: 

", "advice": "

Use BODMAS to compute brackets first, then $\\times$ and $\\div$, then $+$ and $-$. Remember that subtracting a negative number is the same as adding a positive number.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"v1,v2,v3,v4": {"name": "v1,v2,v3,v4", "group": "Ungrouped variables", "definition": "repeat(random(1..15),4)", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..12)", "description": "", "templateType": "anything", "can_override": false}, "expr": {"name": "expr", "group": "Ungrouped variables", "definition": "expression([v1 + \"+\" + v2 + \"*\" + v3,\n v1 + \"-\" + v2 + \"-\" + v3,\n v1 + \"+\" + v2 + \"-\" + v3,\n v1 + \"-\" + v2 + \"*\" + v3,\n v1 + \"*\" + v2 + \"-\" + v3,\n \"(\" + v1 + \"/\" + v2 + \")+\" + v3,\n v1 + \"/\" + v2 + \"+\" + v3,\n v1 + \"+\" + v2 + \"-\" + v3 + \"-\" + v4,\n v1 + \"*\" + v2 + \"+\" + v3 + \"*\" + v4,\n \"-(-\" + v1 + \")\",\n v1 + \"-(-\" + v1 + \")\",\n \"-\" + v1 + \"-(-\" + v1 + \")\",\n \"-\" + v1 + \"+(-\" + v1 + \")\"\n ][idx])", "description": "", "templateType": "anything", "can_override": false}, "dexpr": {"name": "dexpr", "group": "Ungrouped variables", "definition": "latex(expr)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["v1,v2,v3,v4", "idx", "expr", "dexpr"], "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": "

$\\var{dexpr}$= [[0]]

", "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": "eval(expr)", "maxValue": "eval(expr)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Simple BODMAS", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

An order of operation question using +,-,* with signed integers, with up to 4 variables.

\n

The questions are the exercises from Q3 of HELM Book 1.1.5

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Evaluate: 

", "advice": "

Use BODMAS to compute brackets first, then $\\times$ and $\\div$, then $+$ and $-$. Remember that subtracting a negative number is the same as adding a positive number.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"v1,v2,v3,v4": {"name": "v1,v2,v3,v4", "group": "Ungrouped variables", "definition": "repeat(random(1..15),4)", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..12)", "description": "", "templateType": "anything", "can_override": false}, "expr": {"name": "expr", "group": "Ungrouped variables", "definition": "expression([v1 + \"+\" + v2 + \"*\" + v3,\n v1 + \"-\" + v2 + \"-\" + v3,\n v1 + \"+\" + v2 + \"-\" + v3,\n v1 + \"-\" + v2 + \"*\" + v3,\n v1 + \"*\" + v2 + \"-\" + v3,\n \"(\" + v1 + \"/\" + v2 + \")+\" + v3,\n v1 + \"/\" + v2 + \"+\" + v3,\n v1 + \"+\" + v2 + \"-\" + v3 + \"-\" + v4,\n v1 + \"*\" + v2 + \"+\" + v3 + \"*\" + v4,\n \"-(-\" + v1 + \")\",\n v1 + \"-(-\" + v1 + \")\",\n \"-\" + v1 + \"-(-\" + v1 + \")\",\n \"-\" + v1 + \"+(-\" + v1 + \")\"\n ][idx])", "description": "", "templateType": "anything", "can_override": false}, "dexpr": {"name": "dexpr", "group": "Ungrouped variables", "definition": "latex(expr)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["v1,v2,v3,v4", "idx", "expr", "dexpr"], "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": "

$\\var{dexpr}$= [[0]]

", "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": "eval(expr)", "maxValue": "eval(expr)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "Compute modulus of a number", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["Compute modulus of a number", "Compute modulus of a number "], "variable_overrides": [[{"name": "idx", "definition": "0"}], [{"name": "idx", "definition": "1"}]], "questions": [{"name": "Compute modulus of a number 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Compute the modulus of either (a) a signed decimal, or (b) a sum or difference of two decimals.

\n

Used in HELM Book 1.1.5 Exercises

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Compute the following:

", "advice": "

{advice}

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"v1": {"name": "v1", "group": "Ungrouped variables", "definition": "decimal(random(-1000..1000 except 0)/1000)", "description": "", "templateType": "anything", "can_override": false}, "v2": {"name": "v2", "group": "Ungrouped variables", "definition": "decimal(random(-1000..1000 except v1*1000)/1000)", "description": "", "templateType": "anything", "can_override": false}, "val": {"name": "val", "group": "Ungrouped variables", "definition": "[abs(v1),\n abs(v1-v2)][idx]", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": true}, "dexpr": {"name": "dexpr", "group": "Ungrouped variables", "definition": "([\"|\"+v1+\"|\",\"|\"+v1+\"-(\"+v2+\")|\"][idx])", "description": "", "templateType": "anything", "can_override": false}, "advice": {"name": "advice", "group": "Ungrouped variables", "definition": "[\"Take the magnitude of the value inside the absolute value signs\",\n \"Do the calculation inside the absolute value signs first. Then take the absolute value of the answer.\"\n ][idx]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["v1", "v2", "val", "idx", "dexpr", "advice"], "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": "

(a) $\\var{dexpr}$ = [[0]]

", "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": "val", "maxValue": "val", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Compute modulus of a number 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Compute the modulus of either (a) a signed decimal, or (b) a sum or difference of two decimals.

\n

Used in HELM Book 1.1.5 Exercises

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Compute the following:

", "advice": "

{advice}

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"v1": {"name": "v1", "group": "Ungrouped variables", "definition": "decimal(random(-1000..1000 except 0)/1000)", "description": "", "templateType": "anything", "can_override": false}, "v2": {"name": "v2", "group": "Ungrouped variables", "definition": "decimal(random(-1000..1000 except v1*1000)/1000)", "description": "", "templateType": "anything", "can_override": false}, "val": {"name": "val", "group": "Ungrouped variables", "definition": "[abs(v1),\n abs(v1-v2)][idx]", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": true}, "dexpr": {"name": "dexpr", "group": "Ungrouped variables", "definition": "([\"|\"+v1+\"|\",\"|\"+v1+\"-(\"+v2+\")|\"][idx])", "description": "", "templateType": "anything", "can_override": false}, "advice": {"name": "advice", "group": "Ungrouped variables", "definition": "[\"Take the magnitude of the value inside the absolute value signs\",\n \"Do the calculation inside the absolute value signs first. Then take the absolute value of the answer.\"\n ][idx]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["v1", "v2", "val", "idx", "dexpr", "advice"], "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": "

(a) $\\var{dexpr}$ = [[0]]

", "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": "val", "maxValue": "val", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "Compute reciprocal", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": [""], "variable_overrides": [[]], "questions": [{"name": "Compute reciprocal of a number", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Find reciprocals of (a) a proper fraction, (b) an improper fraction, (c) an integer

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Compute the reciprocals of the following numbers:   (To enter $\\dfrac{5}{7}$, type 5/7)

", "advice": "

Find the reciprocal by inverting the number. 

\n

If a number is a whole number, first write it as a fraction with a denominator of 1.

\n

If a number is negative, its reciprocal is also negative.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"rawn1": {"name": "rawn1", "group": "Ungrouped variables", "definition": "random(1..50)", "description": "", "templateType": "anything", "can_override": false}, "rawd1": {"name": "rawd1", "group": "Ungrouped variables", "definition": "random(rawn1+1..51)", "description": "", "templateType": "anything", "can_override": false}, "n1": {"name": "n1", "group": "Ungrouped variables", "definition": "rawn1/gcd(rawn1,rawd1)", "description": "", "templateType": "anything", "can_override": false}, "d1": {"name": "d1", "group": "Ungrouped variables", "definition": "rawd1/gcd(rawn1,rawd1)", "description": "", "templateType": "anything", "can_override": false}, "rawn2": {"name": "rawn2", "group": "Ungrouped variables", "definition": "random(3..50)", "description": "", "templateType": "anything", "can_override": false}, "rawd2": {"name": "rawd2", "group": "Ungrouped variables", "definition": "random(2..rawn2-1)", "description": "", "templateType": "anything", "can_override": false}, "n2": {"name": "n2", "group": "Ungrouped variables", "definition": "rawn2/gcd(rawn2,rawd2)", "description": "", "templateType": "anything", "can_override": false}, "d2": {"name": "d2", "group": "Ungrouped variables", "definition": "rawd2/gcd(rawn2,rawd2)", "description": "", "templateType": "anything", "can_override": false}, "i1": {"name": "i1", "group": "Ungrouped variables", "definition": "random(-20..20 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["rawn1", "rawd1", "n1", "d1", "rawn2", "rawd2", "n2", "d2", "i1"], "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": "

(a) Reciprocal of $\\dfrac{\\var{n1}}{\\var{d1}}$ is [[0]]

\n

(b) Reciprocal of $\\dfrac{\\var{n2}}{\\var{d2}} $ is [[1]]

\n

(c) Reciprocal of $\\var{i1}$ is [[2]]

", "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": "d1/n1", "maxValue": "d1/n1", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "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": "d2/n2", "maxValue": "d2/n2", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "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": "1/i1", "maxValue": "1/i1", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "Compute factorials", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": [""], "variable_overrides": [[]], "questions": [{"name": "Compute factorial 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Calculate a factorial, or the difference of two factorials, or a fraction of two factorials.

\n

Used in HELM Book 5.1.1 Exercises

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

You can use your calculator for this task

", "advice": "

$\\var{qus} = \\var{ans}$

\n

$\\var{qus} = \\var{fact(n1)} - \\var{fact(n2)} = \\var{ans}$

\n

Divide the numerator and denominator by $\\var{n2}!$ to get $\\var{qus} = \\var{n1}$

\n

Divide the numerator and denominator by $\\var{n2}!$ to get $\\var{qus} = \\var{n1}\\times \\var{n1-1} = \\var{ans}$

\n

Divide the numerator and denominator by $\\var{n2}!$ to get $\\var{qus} = \\var{n1}\\times \\var{n1-1} \\times \\var{n1-2} = \\var{ans}$

\n

Divide the numerator and denominator by $\\var{n2}!$ to get $\\var{qus} = \\var{n1} \\times \\var{n1-1} \\times \\dots \\times \\var{n2+1} = \\var{ans}$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"n1": {"name": "n1", "group": "Ungrouped variables", "definition": "random(3..11)", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..2)", "description": "", "templateType": "anything", "can_override": false}, "qus": {"name": "qus", "group": "Ungrouped variables", "definition": "expression([n1+\"!\",n1+\"!-\"+n2+\"!\",n1+\"!/\"+n2+\"!\"][idx])", "description": "", "templateType": "anything", "can_override": false}, "n2": {"name": "n2", "group": "Ungrouped variables", "definition": "random(2..n1-1)", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "eval(qus)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n1", "n2", "idx", "qus", "ans"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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, "prompt": "

Compute $\\var{latex(qus)}$

", "minValue": "ans", "maxValue": "ans", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "Inequalities", "pickingStrategy": "random-subset", "pickQuestions": "2", "questionNames": ["", "", "", ""], "variable_overrides": [[], [], [], []], "questions": [{"name": "Truth of inequalities (\\(\\ge\\) vs \\(\\gt\\))", "extensions": ["chemistry", "geogebra", "jsxgraph", "codewords", "permutations", "polynomials", "quantities", "random_person", "stats", "visjs"], "custom_part_types": [{"source": {"pk": 28, "author": {"name": "Marie Nicholson", "pk": 1799}, "edit_page": "/part_type/28/edit"}, "name": "True/False", "short_name": "true-false", "description": "

The answer is either 'True' or 'False'

", "help_url": "", "input_widget": "radios", "input_options": {"correctAnswer": "if(eval(settings[\"correct_answer_expr\"]), 0, 1)", "hint": {"static": true, "value": ""}, "choices": {"static": true, "value": ["True", "False"]}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nif(studentanswer=correct_answer,\n correct(),\n incorrect()\n)\n\ninterpreted_answer:\nstudentAnswer=0\n\ncorrect_answer:\nif(eval(settings[\"correct_answer_expr\"]),0,1)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "if(studentanswer=correct_answer,\n correct(),\n incorrect()\n)"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "studentAnswer=0"}, {"name": "correct_answer", "description": "", "definition": "if(eval(settings[\"correct_answer_expr\"]),0,1)"}], "settings": [{"name": "correct_answer_expr", "label": "Is the answer \"True\"", "help_url": "", "hint": "", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}], "public_availability": "always", "published": true, "extensions": []}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Identify the truth value of an inequality (T/F) between two numbers

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..15)", "description": "", "templateType": "anything", "can_override": false}, "operations": {"name": "operations", "group": "Ungrouped variables", "definition": "[latex(\"\\\\gt\"),latex(\"\\\\ge\")]", "description": "", "templateType": "anything", "can_override": false}, "values": {"name": "values", "group": "Ungrouped variables", "definition": "[a,-a,a,a]", "description": "", "templateType": "anything", "can_override": false}, "disp_values": {"name": "disp_values", "group": "Ungrouped variables", "definition": "shuffle(values)[0..2]", "description": "", "templateType": "anything", "can_override": false}, "disp_op": {"name": "disp_op", "group": "Ungrouped variables", "definition": "operations[random(0,1)]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "operations", "values", "disp_values", "disp_op"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "true-false", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the truth value of

\n

\\(\\var{disp_values[0]}\\var{disp_op}\\var{disp_values[1]}\\)

\n

", "settings": {"correct_answer_expr": "eval(expression(disp_values[0]+if(disp_op=\"\\\\gt\",\">\",\">=\")+disp_values[1]))"}}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Truth of inequalities (\\(\\ge\\) vs \\(\\gt\\)) including absolute values", "extensions": ["chemistry", "geogebra", "jsxgraph", "codewords", "permutations", "polynomials", "quantities", "random_person", "stats", "visjs"], "custom_part_types": [{"source": {"pk": 28, "author": {"name": "Marie Nicholson", "pk": 1799}, "edit_page": "/part_type/28/edit"}, "name": "True/False", "short_name": "true-false", "description": "

The answer is either 'True' or 'False'

", "help_url": "", "input_widget": "radios", "input_options": {"correctAnswer": "if(eval(settings[\"correct_answer_expr\"]), 0, 1)", "hint": {"static": true, "value": ""}, "choices": {"static": true, "value": ["True", "False"]}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nif(studentanswer=correct_answer,\n correct(),\n incorrect()\n)\n\ninterpreted_answer:\nstudentAnswer=0\n\ncorrect_answer:\nif(eval(settings[\"correct_answer_expr\"]),0,1)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "if(studentanswer=correct_answer,\n correct(),\n incorrect()\n)"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "studentAnswer=0"}, {"name": "correct_answer", "description": "", "definition": "if(eval(settings[\"correct_answer_expr\"]),0,1)"}], "settings": [{"name": "correct_answer_expr", "label": "Is the answer \"True\"", "help_url": "", "hint": "", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}], "public_availability": "always", "published": true, "extensions": []}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Identify the truth value of an inequality (T/F) between two numbers

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..15)", "description": "", "templateType": "anything", "can_override": false}, "operations": {"name": "operations", "group": "Ungrouped variables", "definition": "[latex(\"\\\\gt\"),latex(\"\\\\ge\")]", "description": "", "templateType": "anything", "can_override": false}, "values": {"name": "values", "group": "Ungrouped variables", "definition": "[a,-a,substitute([\"a\":a], expression(\"abs(a)\")),substitute([\"a\":a], expression(\"abs(-a)\")),a,-a,substitute([\"a\":a], expression(\"abs(a)\")),substitute([\"a\":a], expression(\"abs(-a)\"))]", "description": "", "templateType": "anything", "can_override": false}, "disp_values": {"name": "disp_values", "group": "Ungrouped variables", "definition": "shuffle(values)[0..2]", "description": "", "templateType": "anything", "can_override": false}, "disp_op": {"name": "disp_op", "group": "Ungrouped variables", "definition": "operations[random(0,1)]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "operations", "values", "disp_values", "disp_op"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "true-false", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the truth value of

\n

\\(\\var{disp_values[0]}\\var{disp_op}\\var{disp_values[1]}\\)

\n

", "settings": {"correct_answer_expr": "eval(expression(if(\"abs\" in string(disp_values[0]),eval(disp_values[0]),disp_values[0])+if(disp_op=\"\\\\gt\",\">\",\">=\")+if(\"abs\" in string(disp_values[1]),eval(disp_values[1]),disp_values[1])))"}}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Truth of inequalities (\\(\\le\\) vs \\(\\lt\\))", "extensions": ["chemistry", "geogebra", "jsxgraph", "codewords", "permutations", "polynomials", "quantities", "random_person", "stats", "visjs"], "custom_part_types": [{"source": {"pk": 28, "author": {"name": "Marie Nicholson", "pk": 1799}, "edit_page": "/part_type/28/edit"}, "name": "True/False", "short_name": "true-false", "description": "

The answer is either 'True' or 'False'

", "help_url": "", "input_widget": "radios", "input_options": {"correctAnswer": "if(eval(settings[\"correct_answer_expr\"]), 0, 1)", "hint": {"static": true, "value": ""}, "choices": {"static": true, "value": ["True", "False"]}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nif(studentanswer=correct_answer,\n correct(),\n incorrect()\n)\n\ninterpreted_answer:\nstudentAnswer=0\n\ncorrect_answer:\nif(eval(settings[\"correct_answer_expr\"]),0,1)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "if(studentanswer=correct_answer,\n correct(),\n incorrect()\n)"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "studentAnswer=0"}, {"name": "correct_answer", "description": "", "definition": "if(eval(settings[\"correct_answer_expr\"]),0,1)"}], "settings": [{"name": "correct_answer_expr", "label": "Is the answer \"True\"", "help_url": "", "hint": "", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}], "public_availability": "always", "published": true, "extensions": []}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Identify the truth value of an inequality (T/F) between two numbers

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..15)", "description": "", "templateType": "anything", "can_override": false}, "operations": {"name": "operations", "group": "Ungrouped variables", "definition": "[latex(\"\\\\lt\"),latex(\"\\\\le\")]", "description": "", "templateType": "anything", "can_override": false}, "values": {"name": "values", "group": "Ungrouped variables", "definition": "[a,-a,a,a]", "description": "", "templateType": "anything", "can_override": false}, "disp_values": {"name": "disp_values", "group": "Ungrouped variables", "definition": "shuffle(values)[0..2]", "description": "", "templateType": "anything", "can_override": false}, "disp_op": {"name": "disp_op", "group": "Ungrouped variables", "definition": "operations[random(0,1)]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "operations", "values", "disp_values", "disp_op"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "true-false", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the truth value of

\n

\\(\\var{disp_values[0]}\\var{disp_op}\\var{disp_values[1]}\\)

\n

", "settings": {"correct_answer_expr": "eval(expression(disp_values[0]+if(disp_op=\"\\\\lt\",\"<\",\"<=\")+disp_values[1]))"}}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Truth of inequalities (\\(\\le\\) vs \\(\\lt\\)) including absolute values", "extensions": ["chemistry", "geogebra", "jsxgraph", "codewords", "permutations", "polynomials", "quantities", "random_person", "stats", "visjs"], "custom_part_types": [{"source": {"pk": 28, "author": {"name": "Marie Nicholson", "pk": 1799}, "edit_page": "/part_type/28/edit"}, "name": "True/False", "short_name": "true-false", "description": "

The answer is either 'True' or 'False'

", "help_url": "", "input_widget": "radios", "input_options": {"correctAnswer": "if(eval(settings[\"correct_answer_expr\"]), 0, 1)", "hint": {"static": true, "value": ""}, "choices": {"static": true, "value": ["True", "False"]}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nif(studentanswer=correct_answer,\n correct(),\n incorrect()\n)\n\ninterpreted_answer:\nstudentAnswer=0\n\ncorrect_answer:\nif(eval(settings[\"correct_answer_expr\"]),0,1)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "if(studentanswer=correct_answer,\n correct(),\n incorrect()\n)"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "studentAnswer=0"}, {"name": "correct_answer", "description": "", "definition": "if(eval(settings[\"correct_answer_expr\"]),0,1)"}], "settings": [{"name": "correct_answer_expr", "label": "Is the answer \"True\"", "help_url": "", "hint": "", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}], "public_availability": "always", "published": true, "extensions": []}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Identify the truth value of an inequality (T/F) between two numbers

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..15)", "description": "", "templateType": "anything", "can_override": false}, "operations": {"name": "operations", "group": "Ungrouped variables", "definition": "[latex(\"\\\\lt\"),latex(\"\\\\le\")]", "description": "", "templateType": "anything", "can_override": false}, "values": {"name": "values", "group": "Ungrouped variables", "definition": "[a,-a,substitute([\"a\":a], expression(\"abs(a)\")),substitute([\"a\":a], expression(\"abs(-a)\")),a,-a,substitute([\"a\":a], expression(\"abs(a)\")),substitute([\"a\":a], expression(\"abs(-a)\"))]", "description": "", "templateType": "anything", "can_override": false}, "disp_values": {"name": "disp_values", "group": "Ungrouped variables", "definition": "shuffle(values)[0..2]", "description": "", "templateType": "anything", "can_override": false}, "disp_op": {"name": "disp_op", "group": "Ungrouped variables", "definition": "operations[random(0,1)]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "operations", "values", "disp_values", "disp_op"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "true-false", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the truth value of

\n

\\(\\var{disp_values[0]}\\var{disp_op}\\var{disp_values[1]}\\)

\n

", "settings": {"correct_answer_expr": "eval(expression(if(\"abs\" in string(disp_values[0]),eval(disp_values[0]),disp_values[0])+if(disp_op=\"\\\\lt\",\"<\",\"<=\")+if(\"abs\" in string(disp_values[1]),eval(disp_values[1]),disp_values[1])))"}}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "menu", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": "", "allowAttemptDownload": false, "downloadEncryptionKey": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "

Work through these practice questions. You can try each question as many times as you like. The numbers will change each time. Some of the questions are randomly chosen, so if you re-open this set of exercises you may see some different questions.

", "end_message": "", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": []}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "extensions": ["chemistry", "geogebra", "jsxgraph", "codewords", "permutations", "polynomials", "quantities", "random_person", "stats", "visjs"], "custom_part_types": [{"source": {"pk": 28, "author": {"name": "Marie Nicholson", "pk": 1799}, "edit_page": "/part_type/28/edit"}, "name": "True/False", "short_name": "true-false", "description": "

The answer is either 'True' or 'False'

", "help_url": "", "input_widget": "radios", "input_options": {"correctAnswer": "if(eval(settings[\"correct_answer_expr\"]), 0, 1)", "hint": {"static": true, "value": ""}, "choices": {"static": true, "value": ["True", "False"]}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nif(studentanswer=correct_answer,\n correct(),\n incorrect()\n)\n\ninterpreted_answer:\nstudentAnswer=0\n\ncorrect_answer:\nif(eval(settings[\"correct_answer_expr\"]),0,1)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "if(studentanswer=correct_answer,\n correct(),\n incorrect()\n)"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "studentAnswer=0"}, {"name": "correct_answer", "description": "", "definition": "if(eval(settings[\"correct_answer_expr\"]),0,1)"}], "settings": [{"name": "correct_answer_expr", "label": "Is the answer \"True\"", "help_url": "", "hint": "", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}], "public_availability": "always", "published": true, "extensions": []}], "resources": []}