// Numbas version: exam_results_page_options {"name": "Numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Numbers", "tags": [], "metadata": {"description": "

This question gives information for students on how to answer number entry parts, with some opportunities to try submitting answers.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "random(100..1000#0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "information", "useCustomName": true, "customName": "Notation", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Numbers can be entered as integers, decimals or fractions.

\n

Each question will tell you which kinds of numbers are acceptable in answers.

\n

Put a dash before a number to make it negative. For example, -2.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Number formatDefinitionExample
IntegerA sequence of digits142
DecimalA sequence of digits, optionally followed by a . and more digits53.321
FractionTwo integers, separated by a /22 / 7
\n

Commas or spaces to separate powers of 1,000 are usually allowed.

"}, {"type": "numberentry", "useCustomName": true, "customName": "Try writing different notation", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [{"variables": [{"name": "x", "value": "174.1787185383"}], "name": "53", "answer": {"valid": true, "value": "53", "empty": false}, "notes": [{"name": "mark", "expected": {"value": "nothing", "messages": [{"op": "add_credit", "credit": 1, "message": "Your answer is correct.\n\nYou were awarded 1 mark.", "reason": "correct", "credit_change": "positive"}], "warnings": [], "error": "", "valid": true, "credit": 1}}]}, {"variables": [{"name": "x", "value": "174.1787185383"}], "name": "3,000", "answer": {"valid": true, "value": "3,000", "empty": false}, "notes": [{"name": "mark", "expected": {"value": "nothing", "messages": [{"op": "add_credit", "credit": 1, "message": "Your answer is correct.\n\nYou were awarded 1 mark.", "reason": "correct", "credit_change": "positive"}], "warnings": [], "error": "", "valid": true, "credit": 1}}]}, {"variables": [{"name": "x", "value": "174.1787185383"}], "name": "-0.3213", "answer": {"valid": true, "value": "-0.3213", "empty": false}, "notes": [{"name": "mark", "expected": {"value": "nothing", "messages": [{"op": "add_credit", "credit": 1, "message": "Your answer is correct.\n\nYou were awarded 1 mark.", "reason": "correct", "credit_change": "positive"}], "warnings": [], "error": "", "valid": true, "credit": 1}}]}, {"variables": [{"name": "x", "value": "174.1787185383"}], "name": "600/11", "answer": {"valid": true, "value": "600/11", "empty": false}, "notes": [{"name": "mark", "expected": {"value": "nothing", "messages": [{"op": "add_credit", "credit": 1, "message": "Your answer is correct.\n\nYou were awarded 1 mark.", "reason": "correct", "credit_change": "positive"}], "warnings": [], "error": "", "valid": true, "credit": 1}}]}], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

In this part, any number between -5,000 and 5,000 is marked as correct.

\n

Try writing:

\n", "minValue": "-5000", "maxValue": "5000", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "information", "useCustomName": true, "customName": "Rounding", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Sometimes you are asked to round your answer to a certain number of decimal places or significant figures. Text near the input box will tell you how much precision to give.

\n

If you give an answer that is too precise, you may be penalised.

"}, {"type": "gapfill", "useCustomName": true, "customName": "Try rounding", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The correct answer for both inputs in this part is {x}, but each input specifies a different precision that you must round to.

\n

[[0]]

\n

[[1]]

\n

Try submitting {dpformat(x,0)}.0 for the above part. Should it be marked as correct?

\n

[[2]]

\n

[[3]]

\n

Click Try another question to get a different number to try.

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "2 decimal places", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "x", "maxValue": "x", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "2", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "0 decimal places", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "x", "maxValue": "x", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "0", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "2 significant figures", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "x", "maxValue": "x", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "sigfig", "precision": "2", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "5 significant figures", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "x", "maxValue": "x", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "sigfig", "precision": "5", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "information", "useCustomName": true, "customName": "Scientific notation", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

You might be asked to give an answer in scientific notation, also known as standard form.

\n

A number is in standard form when it is written in the form $a \\times 10^b$, where $a$ is a decimal number between $1$ and $10$, called the significand, and $b$ is an integer, called the exponent.

\n

To write a number in scientific notation in Numbas, use the letter e to separate the significand and exponent.

\n

For example, $8.2 \\times 10^{-32}$ is written as 8.2e-32.

"}, {"type": "numberentry", "useCustomName": true, "customName": "Try scientific notation", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

This part will mark any number written in scientific notation as correct.

\n

Try:

\n", "minValue": "-infinity", "maxValue": "infinity", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["scientific"], "correctAnswerStyle": "scientific"}, {"type": "information", "useCustomName": true, "customName": "Infinity", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Occasionally, the answer to a question is \"infinity\". While infinity is not a number, it's accepted as a valid answer to a number entry part.

\n

For positive infinity, write infinity.

\n

For negative infinity, write -infinity.

"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}