// Numbas version: finer_feedback_settings {"name": "Number of digits in another base", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Number of digits in another base", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "tags": [], "metadata": {"description": "
The student must calculate the number of digits a given decimal number would have when written in a different base. Alternative answers catch some common mal-rules and give appropriate feedback.
Based on table 2 from \"diagnosing student errors in e-assessment questions\" by Philip Walker, D. Rhys Gwynllyw and Karen L. Henderson.
How many digits does $\\var{n}_{10}$ have in base $\\var{b}$?
", "alternatives": [{"type": "numberentry", "useCustomName": true, "customName": "Converted to base b", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "You converted $\\var{n}$ to base $b$. You were asked to give the number of digits in this representation.
", "useAlternativeFeedback": false, "minValue": "converted", "maxValue": "converted", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Multiplied n by b", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "You have multiplied $\\var{n}$ and $\\var{b}$ together. You were asked to calculate how many digits the base-$\\var{b}$ representation of $\\var{n}$ has.
", "useAlternativeFeedback": false, "minValue": "n*b", "maxValue": "n*b", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "floor(log(n,b))", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "Did you calculate $\\simplify{floor(log({n},{b}))}$?
\nConsider the following example:
\n$\\simplify{floor(log(13,10))} = 1$, but $13$ has two digits.
", "useAlternativeFeedback": false, "minValue": "floor(log(n,b))", "maxValue": "floor(log(n,b))", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "floor(log(n,b))-1", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "Did you calculate $\\simplify{floor(log({n},{b}))}-1$?
\nConsider the following example:
\n$\\simplify{floor(log(13,10))}-1 = 0$, but $13$ has two digits.
", "useAlternativeFeedback": false, "minValue": "floor(log(n,b))", "maxValue": "floor(log(n,b))", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "ceil(log(n,b))+1", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "Did you calculate $\\simplify{ceil(log({n},{b}))}+1$? You might have made an off-by-one error.
\nConsider the following example:
\n$\\simplify{ceil(log(13,10))}+1 = 3$, but $13$ has two digits.
", "useAlternativeFeedback": false, "minValue": "ceil(log(n,b))+1", "maxValue": "ceil(log(n,b))+1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "minValue": "num_digits", "maxValue": "num_digits", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [{"name": "Number of digits", "limit": 1, "mode": "sum"}], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "exam"}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}