// Numbas version: finer_feedback_settings {"name": "Jean jinhua's copy of 0: Getting Started with Numbas", "feedback": {"showtotalmark": true, "advicethreshold": 0, "allowrevealanswer": true, "feedbackmessages": [], "showactualmark": true, "showanswerstate": true, "intro": "", "enterreviewmodeimmediately": true, "showexpectedanswerswhen": "inreview", "showpartfeedbackmessageswhen": "always", "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showadvicewhen": "never"}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "allQuestions": true, "shuffleQuestions": false, "percentPass": 0, "duration": 0, "pickQuestions": 0, "navigation": {"onleave": {"action": "none", "message": ""}, "reverse": true, "allowregen": true, "showresultspage": "oncompletion", "preventleave": true, "browse": true, "showfrontpage": true}, "metadata": {"description": "
6 questions which introduce the student to the Numbas system.
\nrebelmaths
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "exam", "questions": [], "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": [{"name": "Input 1", "extensions": [], "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/"}], "functions": {}, "tags": ["Numbas", "answers", "entering", "fields", "input", "introduction", "mathematical notation", "numbas", "parts", "practice mode", "reveal", "submit"], "advice": "", "rulesets": {}, "parts": [{"prompt": "Questions are often split into parts.
\nIn each part you will see various input fields for your answers.
\nThis is the first part and contains one question for you to answer .
\nIt will be clear from the question what you need to enter in each field.
\nFor example, a question could be:
\n$2+2=\\;$[[0]] (enter a number)
\nYou are expected to enter the answer and then press the Submit part button.
\nTry it: enter the correct value; note that a box appears showing your input; press Submit part - a tick appears. Brilliant!
\nNow enter an incorrect value. Press Submit part and a cross appears. Note the Show Feedback button; clicking on that gives a more detailed feedback - in this case there is not much to say!
\nThis is the sort of feedback you get in practice mode.
\nTry putting in 2+2
as your answer and see what happens as well.
You will be given an error message; click on OK and continue.
\nSo you must be careful and always check that the answer in the input field is what you expect it to be before you move on.
\nPressing the Reveal answers button at the bottom of the screen gives you the answers for all parts and usually also gives you a full solution for each part. This is only available in Practice mode and certainly not available in Exam mode.
\nAlso note that in Practice mode you have available a button at the bottom labelled Try another question like this one. This is useful for you to try other versions of the question, if it is randomised. This question is not randomised, so you will get the same one back again!
", "gaps": [{"integerpartialcredit": 0.0, "integeranswer": true, "maxvalue": 4.0, "minvalue": 4.0, "marks": 1.0, "type": "numberentry", "showPrecisionHint": false}], "type": "gapfill", "marks": 0.0}, {"prompt": "This is the second part of this example and it contains 2 questions.
\nEnter your answers for both and then press Submit part for both.
\nNote that your input in mathematical notation is displayed next to your input so you can check it has been interpreted as you intended.
\n$x+x=\\;$[[0]] (Enter a multiple of $x$ )
\nEnter your answer as 2*x
. You could just enter 2x
without the *
, but we advise you to use *
for all multiplications as there are some cases where the meaning of your input would be ambiguous otherwise.
Simplify the following expression. Once again you see your answer in the best possible mathematical notation next to your input.
\nThis check becomes more important when you input more complicated expressions - see later questions.
\n$2x-x+y-2y=\\;$[[1]]
\nTry getting one right and one wrong and see the sort of feedback you get. The greyed-out tick indicates that you were awarded some of the available marks but not all.
\nAlso try inputting x+x
for the answer to the first question in this part and see what happens after you submit.
Note the red exclamation marks next to the input field when you enter something the system does not like or you have submitted without answering the question. Move the cursor over the mark and you will get a message saying what the problem is.
\nThe Submit all parts button at the bottom allows you to submit all your answers at once without submitting each part separately. In this case, the answers in both parts will be submitted.
", "gaps": [{"notallowed": {"message": "Simplify the expression please!
", "showstrings": false, "strings": ["+"], "partialcredit": 0.0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "marks": 1.0, "answer": "2*x", "checkvariablenames": false, "type": "jme"}, {"notallowed": {"message": "Simplify further!
", "showstrings": false, "strings": ["+"], "partialcredit": 0.0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "marks": 1.0, "answer": "x-y", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}], "statement": "\nThis example explains how you enter your answers and submit them.
\nThis example and the others are in practice mode - you will be given information on whether or not you have the answer correct or not.
\nExam mode does not give you this information.
\nIt is very important that you submit all your answers. If you do not your results will not be recorded. Note that the list of questions in the exam on the left of the window gives information on whether or not you have completed a question. For each question the marks you have gained by submitting are shown there, so if nothing is shown you have not attempted the question.
\nGo to the next question. You can then come back. Note that until you quit the exam for good you can go back to any question and change your answers if you want to.
\n ", "variable_groups": [], "progress": "in-progress", "type": "question", "variables": {}, "metadata": {"notes": "", "description": "Entering numbers and algebraic symbols in Numbas.
", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Input 2", "extensions": [], "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/"}], "functions": {}, "tags": ["Fractions", "Numbas", "decimals", "fractions", "input", "introduction", "numbas", "numbers", "tolerance", "whole numbers"], "advice": "No advice available.
", "rulesets": {}, "parts": [{"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{a}\\times\\var{b}+\\var{c}=\\;$[[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.
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.
\nEnter the result of this calculation, but do not enter it 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.0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "marks": 1.0, "answer": "{a*b+c}", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}, {"prompt": "Many calculations will result in numbers which must 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 putting in 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 decimal 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 input.
", "gaps": [{"minvalue": "{ans1-tol}", "type": "numberentry", "maxvalue": "{ans1+tol}", "marks": 1.0, "showPrecisionHint": false}], "type": "gapfill", "marks": 0.0}, {"prompt": "You 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}
.
Try inputting the decimal version of this to as many places as you like, and see what happens.
", "gaps": [{"notallowed": {"message": "Simplify into a single fraction. Do not enter as a decimal.
", "showstrings": false, "strings": ["+", "."], "partialcredit": 0.0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "all, fractionNumbers", "marks": 1.0, "answer": "{a1+b1}/{a1*b1}", "checkvariablenames": false, "type": "jme", "musthave": {"message": "Input as a fraction.
", "showstrings": false, "strings": ["/"], "partialcredit": 0.0}}], "type": "gapfill", "marks": 0.0}, {"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.
", "type": "information", "marks": 0.0}], "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.
", "variable_groups": [], "progress": "in-progress", "type": "question", "variables": {"a": {"definition": "random(1..9)", "name": "a"}, "c": {"definition": "random(2..9)", "name": "c"}, "b": {"definition": "random(3..9)", "name": "b"}, "ans1": {"definition": "precround(a1/b1,2)", "name": "ans1"}, "a1": {"definition": "random(2,3,4,5,6,8,9,10,12)", "name": "a1"}, "b1": {"definition": "random(7,11,13)", "name": "b1"}, "tol": {"definition": 0.01, "name": "tol"}}, "metadata": {"notes": "", "description": "Details on inputting numbers into Numbas.
", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Input 3", "extensions": [], "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/"}], "functions": {}, "tags": ["Numbas", "brackets", "input", "introduction", "numbas", "powers"], "advice": "", "rulesets": {}, "parts": [{"prompt": "Write $e^{\\simplify{{a}x}}$. [[0]]
\nYour input is shown in mathematical notation in a box next to your input so that you can check that you have entered it correctly.
\nClick on Submit part to check your answer.
\nClick on the input field and remove the brackets, then re-submit and see what happens.
\n\n
", "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 1e-05, "vsetrange": [0.0, 0.1], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "all", "marks": 1.0, "answer": "e^({a}*x)", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}, {"prompt": "
Input $x^{\\var{c}}x^{\\var{d}}$ as a single power of $x$.
\nFor example, you would input $x^{-6}x^{-5}$ as x^(-11)
.
$x^{\\var{c}}x^{\\var{d}}=\\;$[[0]]
", "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "all", "marks": 1.0, "answer": "x^({c+d})", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}, {"prompt": "Input $(xy)^{\\var{f}}$ in the form $x^ay^b$ for suitable values of $a$ and $b$.
\n$(xy)^{\\var{f}}=\\;$[[0]]
", "gaps": [{"notallowed": {"message": "Input in the form $x^ay^b$ for suitable values of $a$ and $b$.
", "showstrings": false, "strings": ["xy", "x*y"], "partialcredit": 0.0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "all", "marks": 1.0, "answer": "x^{f}*y^{f}", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}], "statement": "In this example we show you how to input powers. It is important that you get this right as many questions ask for such inputs.
\n$a^b$ is input as a^b
.
But you have to be careful with inputting such expressions as
\n\\[e^{2x},\\;x^{-2},\\;(xy)^2\\]
\nIn these cases the exponent must be enclosed in brackets.
\nPower | Correct Input | Incorrect Input | Why it's wrong |
---|---|---|---|
$e^{2x}$ | \ne^(2*x) | \n e^2*x | \n The system thinks this is $(e^2) \\cdot x$ | \n
$x^{-2}$ | \nx^(-2) | \n x^-2 | \n This produces an error | \n
$(xy)^2$ | \n(x*y)^2 | \n x*y^2 | \n The system thinks this is $x \\cdot (y^2)$ | \n
So make sure that you use brackets to properly define your powers. This is a major source of input inaccuracies.
\nTo test your input of powers, try the following examples.
", "variable_groups": [], "progress": "in-progress", "type": "question", "variables": {"a": {"definition": "random(6..12)*s", "name": "a"}, "s": {"definition": "random(1,-1)", "name": "s"}, "f": {"definition": "random(-5,-4,-3,-2,-1)", "name": "f"}, "c": {"definition": "random(-12..-6)", "name": "c"}, "d": {"definition": "random(-12..-6)", "name": "d"}}, "metadata": {"notes": "", "description": "Information on inputting powers
", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Input 4", "extensions": [], "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/"}], "functions": {}, "tags": ["Numbas", "algebraic expressions", "input", "introduction", "notation", "numbas", "polynomials", "symbols"], "advice": "", "rulesets": {}, "parts": [{"prompt": "Inputting polynomials such as $3x^2+5x-2$ is easy: just input 3*x^2+5*x-2
.
Input this polynomial: $\\simplify[all]{{a}*x^{b}+{c}*x+{d}}=\\;$[[0]]
", "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "all", "marks": 1.0, "answer": "{a}*x^{b}+{c}x+{d}", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}, {"prompt": "Now consider this problem.
\nExpand the brackets and input the resulting expression:
\n$\\simplify[all]{(x+{a}y)(x+{c}y)}=\\;$[[0]]
\n(Do not include brackets in your answer.)
\nTwo adjacent letters are treated as a single variable: xy
is not interpreted as the product of $x$ and $y$, $x \\times y$. You must use the multiplication symbol to separate the two variables, i.e. enter x*y
. If you don't do this you will often be given a warning that your answer might not have been interpreted as you intended.
Do not include brackets in your answer.
", "showstrings": false, "strings": ["("], "partialcredit": 0.0}, "expectedvariablenames": ["x", "y"], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "all", "marks": 1.0, "answer": "x^2+{a+c}x*y+{a*c}y^2", "checkvariablenames": true, "type": "jme"}], "type": "gapfill", "marks": 0.0}], "statement": "In this example, we look at how you input algebraic expressions - those involving symbols.
\nThe box next to your input shows your answer in mathematical notation and is very important as you can use it to check your answer has been interpreted as you intended.
", "variable_groups": [], "progress": "in-progress", "type": "question", "variables": {"a": {"definition": "random(2..9)", "name": "a"}, "s": {"definition": "random(1,-1)", "name": "s"}, "b": {"definition": "random(2..4)", "name": "b"}, "c": {"definition": "s*random(1..9)", "name": "c"}, "d": {"definition": "random(1..9)", "name": "d"}}, "metadata": {"notes": "", "description": "Inputting algebraic expressions into Numbas.
", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Input 5", "extensions": [], "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/"}], "functions": {}, "tags": ["Numbas", "algebraic input", "brackets", "input", "introduction", "mathematical expressions", "numbas", "ratios"], "advice": "The correct input is ({a}+{b}x)/({c}+{d}y)
- the rest are incorrect and you should have chosen those.
A correct input is ({b} + {a}y) / ({c} + {d}z)
. Also correct is ({a}y+{b}) / ({c} + {d}z)
etc.
A correct input is ({d}z + {b}) / ((x + {a})*(y + {c}))
.
Note the denominator (the bottom of the ratio) has to have two brackets, i.e. ((x + {a})*(y + {c}))
as otherwise the expression ({d}z + {b}) / (x + {a})*(y + {c})
is seen by the system as $\\displaystyle \\left(\\simplify[std]{({d} * z + {b}) / (x + {a})}\\right) (y + \\var{c})$
A correct input is ({a} -({b}x + {c})*e ^ ( -{2}x)) / ((x + {2*b})*(y -{3*d}))
.
Suppose we wanted to input the expression $\\displaystyle \\frac{\\var{a}+\\var{b}x}{\\var{c}+\\var{d}y}$ into the system.
\nWhich of the following input expressions are incorrect?
\n[[0]]
\nChoose the incorrect input(s). (You lose 3 marks if you choose the wrong one!)
\nAfter you have clicked Submit part, click on Show Feedback and you will be given more detail on your choices.
\nYou can click on Reveal answers at the bottom of the screen to see solutions, but it's best to work through these questions yourself. Remember you can always redo the question by clicking on the Try another question like this one button at the bottom of the screen.
", "gaps": [{"maxanswers": 0.0, "distractors": ["({a}+{b}x)/({c}+{d}y)
{a}+{b}x/({c}+{d}y)
{a}+{b}x/{c}+{d}y
({a}+{b}x)/{c}+{d}y
({a}+{b}x)/({c}+{d}y)
{a}+{b}x/({c}+{d}y)
{a}+{b}x/{c}+{d}y
({a}+{b}x)/{c}+{d}y
Input the expression $\\displaystyle \\frac{\\var{b}+\\var{a}y}{\\var{d}+\\var{c}z}$. [[0]]
", "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 1.0, "answer": "({b}+{a}y)/({d}+{c}z)", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}, {"prompt": "Input the expression $\\displaystyle \\frac {\\var{d} z + \\var{b}} {(x + \\var{a}) (y + \\var{c})}$. [[0]]
", "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 1.0, "answer": "({d} * z + {b}) / ((x + {a}) * (y + {c}))", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}, {"prompt": "Input the expression $\\displaystyle \\simplify[std]{({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 * b}) * (y -{3* d}))}$. [[0]]
", "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.0001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 1.0, "answer": "({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 b}) * (y -{3* d}))", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}], "statement": "This question concerns ratios of algebraic expressions.
\nBy this we mean expressions of the form $\\displaystyle \\frac{p(x)}{q(x)}$ where $p(x)$ and $q(x)$ are algebraic expressions.
\nIf you want to input such an expression into the system you HAVE TO BE CAREFUL AND USE BRACKETS or mistakes will occur.
\nOnce again, the box displaying your input in mathematical notation beside the input boxes in parts a, b and c is very useful as it shows what the system thinks you have entered.
", "variable_groups": [], "progress": "in-progress", "type": "question", "variables": {"a": {"definition": "random(2..16#2)", "name": "a"}, "c": {"definition": "random(2..9)", "name": "c"}, "b": {"definition": "random(3..15#2)", "name": "b"}, "d": {"definition": "random(2..9 except [round(b*c/a),c])", "name": "d"}}, "metadata": {"notes": "", "description": "Instructions on inputting ratios of algebraic expressions.
", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}]}], "contributors": [{"name": "Jinhua Mathias", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/353/"}], "extensions": [], "custom_part_types": [], "resources": []}