// Numbas version: exam_results_page_options {"name": "sp\u00f8rsm\u00e5l 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": ""}, "statement": "

Gjør uttrykket enklere. Bruk ^ for å skrive en potens, f.eks skriver du a^3 for å få $a^3$

\n

\n

", "rulesets": {}, "advice": "", "ungrouped_variables": ["powers1", "prodpow1", "powers2", "prodpow2", "powers3", "prodpow3", "ndec", "nint", "num", "den", "prodpow4"], "functions": {}, "name": "sp\u00f8rsm\u00e5l 2", "variables": {"powers1": {"templateType": "anything", "name": "powers1", "description": "

2..6

", "group": "Ungrouped variables", "definition": "random(3..6)"}, "prodpow2": {"templateType": "anything", "name": "prodpow2", "description": "", "group": "Ungrouped variables", "definition": "powers2[0][0]*powers2[1][0]"}, "num": {"templateType": "anything", "name": "num", "description": "", "group": "Ungrouped variables", "definition": "random(-9..-1)"}, "den": {"templateType": "anything", "name": "den", "description": "", "group": "Ungrouped variables", "definition": "random(10,20,25)"}, "nint": {"templateType": "anything", "name": "nint", "description": "", "group": "Ungrouped variables", "definition": "random(-12..-2)"}, "ndec": {"templateType": "anything", "name": "ndec", "description": "", "group": "Ungrouped variables", "definition": "random(-0.9..-0.1#0.1)"}, "powers2": {"templateType": "anything", "name": "powers2", "description": "", "group": "Ungrouped variables", "definition": "shuffle([[3,\"three\"],[4,\"four\"],[5,\"five\"],[6,\"six\"]])[0..2]"}, "prodpow4": {"templateType": "anything", "name": "prodpow4", "description": "", "group": "Ungrouped variables", "definition": "nint*ndec*num/den"}, "powers3": {"templateType": "anything", "name": "powers3", "description": "", "group": "Ungrouped variables", "definition": "shuffle([[2,\"two\"],[3,\"three\"],[4,\"four\"],[5,\"five\"],[6,\"six\"]])[0..3]"}, "prodpow1": {"templateType": "anything", "name": "prodpow1", "description": "", "group": "Ungrouped variables", "definition": "2*powers1"}, "prodpow3": {"templateType": "anything", "name": "prodpow3", "description": "", "group": "Ungrouped variables", "definition": "powers3[0][0]*powers3[1][0]*powers3[2][0]"}}, "extensions": [], "tags": [], "preamble": {"css": "", "js": ""}, "parts": [{"prompt": "

$\\left(d^\\var{powers1}\\right)^2$ = [[0]]

", "stepsPenalty": "1", "type": "gapfill", "scripts": {}, "showCorrectAnswer": true, "gaps": [{"type": "jme", "scripts": {"mark": {"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 $x^y$.');\n}\n", "order": "after"}}, "checkingaccuracy": "0.001", "variableReplacements": [], "answer": "d^{prodpow1}", "musthave": {"strings": ["^"], "showStrings": false, "partialCredit": 0, "message": "

Use ^ for powers. Input your answer in index form.

"}, "vsetrangepoints": 5, "vsetrange": [0, 1], "checkingtype": "absdiff", "maxlength": {"message": "

Your answer is longer than necessary.

", "partialCredit": 0, "length": "4"}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "expectedvariablenames": [], "answersimplification": "basic", "marks": 1, "showpreview": true, "checkvariablenames": false, "showFeedbackIcon": true, "notallowed": {"strings": ["^0"], "showStrings": false, "partialCredit": 0, "message": "

Use ^ for powers. Input your answer in index form.

"}}], "variableReplacementStrategy": "originalfirst", "marks": 0, "showFeedbackIcon": true, "variableReplacements": [], "steps": [{"prompt": "

Interpret the powers in expanded form and then write the result in index form.

\n
\n

Suppose you had to simplify $(5^3)^2$. Well cubed means there are three 5s all being multiplied, so we have

\n

\\[(5^3)^2=(5\\times 5\\times 5)^2\\]

\n

and squared means multiplied by itself (in this case the square is acting on the whole bracketed term) so we get

\n

\\[(5^3)^2=(5\\times 5\\times 5)^2=(5\\times 5\\times 5)\\times (5\\times 5\\times 5)\\]

\n

 but this is just six 5s all being multiplied together, that is

\n

\\[(5^3)^2=5^6.\\]

\n
\n

In general, we have $\\displaystyle(a^b)^c=a^{bc}$.

", "type": "information", "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 0, "showFeedbackIcon": true, "variableReplacements": []}]}], "variable_groups": [], "type": "question", "contributors": [{"name": "Ida Landg\u00e4rds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2336/"}]}]}], "contributors": [{"name": "Ida Landg\u00e4rds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2336/"}]}