// Numbas version: exam_results_page_options {"name": "Clare's copy of Input 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "name": "Clare's copy of Input 2", "advice": "
No advice available.
", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "Details on inputting numbers into Numbas.
"}, "extensions": [], "variables": {"ans1": {"group": "Ungrouped variables", "templateType": "anything", "name": "ans1", "description": "", "definition": "precround(a1/b1,2)"}, "a1": {"group": "Ungrouped variables", "templateType": "anything", "name": "a1", "description": "", "definition": "random(2,3,4,5,6,8,9,10,12)"}, "tol": {"group": "Ungrouped variables", "templateType": "anything", "name": "tol", "description": "", "definition": "0.01"}, "b1": {"group": "Ungrouped variables", "templateType": "anything", "name": "b1", "description": "", "definition": "random(7,11,13)"}, "c": {"group": "Ungrouped variables", "templateType": "anything", "name": "c", "description": "", "definition": "random(2..9)"}, "a": {"group": "Ungrouped variables", "templateType": "anything", "name": "a", "description": "", "definition": "random(1..9)"}, "b": {"group": "Ungrouped variables", "templateType": "anything", "name": "b", "description": "", "definition": "random(3..9)"}}, "parts": [{"customMarkingAlgorithm": "", "showFeedbackIcon": true, "marks": 0, "showCorrectAnswer": true, "scripts": {}, "useCustomName": false, "customName": "", "variableReplacementStrategy": "originalfirst", "unitTests": [], "gaps": [{"minValue": "a*b+c", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "marks": 1, "showCorrectAnswer": true, "scripts": {}, "correctAnswerStyle": "plain", "useCustomName": false, "maxValue": "a*b+c", "customName": "", "variableReplacementStrategy": "originalfirst", "unitTests": [], "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "correctAnswerFraction": false, "variableReplacements": [], "allowFractions": false, "type": "numberentry", "mustBeReducedPC": 0, "extendBaseMarkingAlgorithm": true}], "variableReplacements": [], "sortAnswers": false, "type": "gapfill", "extendBaseMarkingAlgorithm": true, "prompt": "This is an example of a randomised question - the next time you use this example you will be asked to do a different calculation.
\nFind the result of this calculation:
\n$\\var{c}+\\var{a}\\times\\var{b}=\\;$[[0]]
\nYou must input a whole number; for example, if the answer were $2$ then you could input 2
or 2.0
- try both forms.
Many calculations will result in numbers which must be entered in decimal notation correct to a certain number of decimal places.
\nSometimes there is a small tolerance built in so that if you get the result wrong by 1 in the last decimal place then it will be marked as correct..... but accuracy is important - so make sure that you get the calculations correct.
\nHere is an example with built in tolerance:
\nExpress $\\displaystyle \\frac{\\var{a1}}{\\var{b1}}$ as a decimal correct to 3 decimal places here: [[0]]
\nTry putting in the correct value and submitting.
\nThen vary the last decimal place by 1 either way and submit again, and then then last place by 2 either way and submit again.
\nTry putting in the original fraction as the answer(i.e. $\\var{a1}/\\var{b1}$ ) and see what happens.
\n\nMost of the time you will be required to be precise and round off correctly.
\nHere is the last example without built in tolerance:
\nExpress $\\displaystyle \\frac{\\var{a1}}{\\var{b1}}$ as a decimal correct to 3 decimal places here: [[1]]
\nThis time it will accept the correct value only!
"}, {"customMarkingAlgorithm": "", "showFeedbackIcon": true, "marks": 0, "showCorrectAnswer": true, "scripts": {}, "useCustomName": false, "customName": "", "variableReplacementStrategy": "originalfirst", "unitTests": [], "gaps": [{"customMarkingAlgorithm": "", "showFeedbackIcon": true, "showPreview": true, "variableReplacementStrategy": "originalfirst", "notallowed": {"showStrings": false, "strings": ["+", "."], "partialCredit": 0, "message": "Simplify into a single fraction. Do not enter as a decimal.
"}, "unitTests": [], "musthave": {"showStrings": false, "strings": ["/"], "partialCredit": 0, "message": "Input as a fraction.
"}, "variableReplacements": [], "checkingAccuracy": 0.001, "valuegenerators": [], "answer": "{a1+b1}/{a1*b1}", "marks": 1, "showCorrectAnswer": true, "scripts": {}, "useCustomName": false, "customName": "", "type": "jme", "answerSimplification": "all, fractionNumbers", "checkingType": "absdiff", "checkVariableNames": false, "failureRate": 1, "vsetRange": [0, 1], "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true}], "variableReplacements": [], "sortAnswers": false, "type": "gapfill", "extendBaseMarkingAlgorithm": true, "prompt": "Some questions may ask you to input fractions and not decimals.
\nFind the following sum as a fraction:
\n$\\displaystyle \\frac{1}{\\var{a1}}+\\frac{1}{\\var{b1}}=\\;$[[0]]
\n(input as a fraction and not a decimal)
\nYou input the answer as {a1+b1}/{a1*b1}
.
Try inputting the decimal version of this to as many places as you like, and see what happens.
"}, {"customMarkingAlgorithm": "", "showFeedbackIcon": true, "marks": 0, "showCorrectAnswer": true, "scripts": {}, "useCustomName": false, "customName": "", "variableReplacementStrategy": "originalfirst", "unitTests": [], "variableReplacements": [], "type": "information", "extendBaseMarkingAlgorithm": true, "prompt": "As this question is in practice mode, if you click on the Reveal answers button at the bottom of the screen all the question fields are filled with the correct answers. Also, if available, there will be a full solution given under the heading Advice. Just scroll down to see this. However, there is no Advice available for this question as it is not needed.
\nFinally as you are in practice mode, if you click on the Try another question like this one button at the bottom you will get this question again but with different numbers (usually!), and you can try it again. This is true for all practice mode questions which are randomised.
"}], "preamble": {"js": "", "css": ""}, "functions": {}, "variable_groups": [], "ungrouped_variables": ["c", "a1", "b", "b1", "tol", "a", "ans1"], "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "statement": "In this example we show how to enter numbers, either as whole numbers (integers), decimals (rounded to a number of decimal places), or fractions.
", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Clare Lundon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/492/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Clare Lundon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/492/"}]}