// Numbas version: exam_results_page_options {"name": " How to enter numbers - Getting Started", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "c", "b", "ans1", "a1", "b1", "tol"], "name": " How to enter numbers - Getting Started", "tags": ["checked2015", "decimals", "Fractions", "input", "introduction", "Numbas", "numbas", "numbers", "tolerance", "whole numbers"], "advice": "
No advice available.
", "rulesets": {}, "parts": [{"prompt": "Find the result of this calculation: (This is an example of a randomised question - the next time you use this example you will probably be given a different calculation to do):
\n$\\var{a}\\times\\var{b}+\\var{c}=\\;$[[0]]
\nYou have to input a whole number - it could be in decimal form. If the answer was $2$ then you could input 2
or 2.0
- try both forms.
Sometimes I could force you to enter a whole number not in decimal form. But this should be no problem as you will be warned, as below.
\nEnter the result of this calculation, but enter as a whole number and not as a decimal.
\n$\\var{a}\\times\\var{b}+\\var{c}=\\;$[[0]]
\nEnter the correct answer as a decimal i.e. in the form 2.0
and see what happens:
Do not enter your answer as a decimal. Enter as a whole number without the decimal point.
", "showStrings": false, "strings": ["."], "partialCredit": 0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "scripts": {}, "answer": "{a*b+c}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "Decimals
\nMany calculations will result in numbers which need to be entered in decimal notation.
\nI will always ask for the decimal to be input to a certain number of decimal places.
\nOften 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.
\nBut accuracy is important, so make sure that you get the calculations correct.
\nFor example:
\nInput $\\displaystyle \\frac{\\var{a1}}{\\var{b1}}$ as a decimal correct to 2 decimal places here: [[0]]
\nTry entering the correct value and submitting. Then vary the last decimal place by 1 either way and submitting, and then the last place by 2 either way and submitting.
\nTry putting in the fraction as it is (i.e. $\\var{a1}/\\var{b1}$ ) and see what happens.
\nThe system gives an error message as what you have put in is not a direct representation of a number. But you can always re-enter.
\nSo be careful - always check after submitting your answer that the input field contains the answer that you thought you entered.
", "marks": 0, "gaps": [{"allowFractions": false, "scripts": {}, "maxValue": "{ans1+tol}", "minValue": "{ans1-tol}", "correctAnswerFraction": false, "showCorrectAnswer": true, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "Fractions
\nYou will find that some questions may ask you to input fractions and not decimals.
\nFor example:
\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}
\nTry inputting the decimal version of this to as many places as you like (for example given by the calculator on the PC - you can copy this from the calculator and paste into the input field) and see what happens.
", "marks": 0, "gaps": [{"notallowed": {"message": "Simplify into a single fraction. Do not enter as a decimal.
", "showStrings": false, "strings": ["+", "."], "partialCredit": 0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "all, fractionNumbers", "scripts": {}, "answer": "{a1+b1}/{a1*b1}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1], "musthave": {"message": "Input as a fraction.
", "showStrings": false, "strings": ["/"], "partialCredit": 0}}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"showCorrectAnswer": true, "prompt": "As this question is in practice mode, if you click on the Reveal button at the top of the window 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.
", "marks": 0, "type": "information", "scripts": {}}], "statement": "In this example we show how to enter numbers, either as
\nDetails on inputting numbers into Numbas.
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "steve kilgallon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/268/"}]}]}], "contributors": [{"name": "steve kilgallon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/268/"}]}