// Numbas version: exam_results_page_options {"name": "Morten's copy of Ida's copy of sp\u00f8rsm\u00e5l 4", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "statement": "
Regn ut og forkort om mulig.
\nBruk / for å skrive divisjon, f.eks skriver du (2a-1)/(x+3) for å få $\\frac{2a-1}{x+3}$.
\n", "variables": {"f": {"definition": "primes[4]", "description": "", "group": "numerical fractions", "name": "f", "templateType": "anything"}, "c": {"definition": "primes[2]", "description": "", "group": "numerical fractions", "name": "c", "templateType": "anything"}, "d": {"definition": "primes[3]", "description": "", "group": "numerical fractions", "name": "d", "templateType": "anything"}, "j": {"definition": "random(primes except [d,g,h])", "description": "", "group": "numerical fractions", "name": "j", "templateType": "anything"}, "h": {"definition": "primes[6]", "description": "", "group": "numerical fractions", "name": "h", "templateType": "anything"}, "b": {"definition": "primes[1]", "description": "", "group": "numerical fractions", "name": "b", "templateType": "anything"}, "primes": {"definition": "shuffle([2,3,5,7,11,13,17])", "description": "", "group": "numerical fractions", "name": "primes", "templateType": "anything"}, "a": {"definition": "primes[0]", "description": "", "group": "numerical fractions", "name": "a", "templateType": "anything"}, "g": {"definition": "primes[5]", "description": "", "group": "numerical fractions", "name": "g", "templateType": "anything"}}, "functions": {}, "preamble": {"js": "", "css": ""}, "metadata": {"description": "Add, subtract, multiply and divide
$\\displaystyle \\frac{\\frac{w+\\var{f}}{\\var{g}w}}{w+\\var{f}}=$ [[0]]
\n\n", "gaps": [{"showPreview": true, "checkingAccuracy": 0.001, "checkingType": "absdiff", "vsetRangePoints": 5, "expectedVariableNames": ["w"], "answer": "1/({g}w)", "checkVariableNames": true, "marks": "1", "scripts": {"mark": {"order": "after", "script": "// Parse the student's answer as a syntax tree\nvar studentTree = Numbas.jme.compile(this.studentAnswer,Numbas.jme.builtinScope);\n\n// Create the pattern to match against \n// We just want to check that the student has written \"something to the power of something\"\nvar rule = Numbas.jme.compile('?? / ??');\n\n// Check the student's answer matches the pattern. \nvar m = Numbas.jme.display.matchTree(rule,studentTree,true);\n\n// If not, take away marks\nif(!m) {\n this.multCredit(0,'Your answer is not in the form $m/n$.');\n}"}}, "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "variableReplacements": [], "failureRate": 1, "type": "jme", "vsetRange": [0, 1], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "showFeedbackIcon": true, "unitTests": []}], "marks": 0, "scripts": {}, "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "variableReplacements": [], "type": "gapfill", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "showFeedbackIcon": true, "stepsPenalty": "0", "unitTests": [], "steps": [{"customMarkingAlgorithm": "", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "unitTests": [], "prompt": "\n
Her er noen eksempler:
\n\\[\\frac{7}{\\frac{5}{6}}=7\\div\\frac{5}{6} =7\\times\\frac{6}{5}=\\frac{42}{5}\\]
\n\\[\\frac{\\frac{7}{5}}{6}=\\frac{7}{5}\\div 6=\\frac{7}{5}\\times \\frac{1}{6}=\\frac{7}{30}\\]
\n\\[\\frac{\\frac{9}{11}}{\\frac{5}{3}}=\\frac{9}{11}\\div\\frac{5}{3}=\\frac{9}{11}\\times \\frac{3}{5}=\\frac{27}{55}\\]
", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "showFeedbackIcon": true, "marks": 0, "scripts": {}, "type": "information"}]}], "variable_groups": [{"variables": ["a", "b", "c", "d", "f", "g", "h", "j", "primes"], "name": "numerical fractions"}], "ungrouped_variables": [], "name": "Morten's copy of Ida's copy of sp\u00f8rsm\u00e5l 4", "extensions": [], "type": "question", "contributors": [{"name": "Morten Brekke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/478/"}, {"name": "Ida Landg\u00e4rds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2336/"}]}]}], "contributors": [{"name": "Morten Brekke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/478/"}, {"name": "Ida Landg\u00e4rds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2336/"}]}