// Numbas version: exam_results_page_options {"name": "Q1.1 Pythagoras' Theorem and naming sides of right angled triangle", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Q2_0UOrG2O.png", "/srv/numbas/media/question-resources/Q2_0UOrG2O.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {"tri": {"definition": "\nvar c = document.createElement('canvas');\n $(c).attr('width',700).attr('height',900);\n var context = c.getContext('2d');\n\n context.beginPath();\n context.moveTo(300,800);\n context.lineTo((x*8+300),800);\n context.lineTo((x*8+300),(800-(y*8)));\n context.closePath();\n context.stroke();\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'Z';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((8*x)/2)),820);\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'X';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(320+((8*x))),(800-((y*8)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'Y';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(280+((8*x)/2)),(800-((y*8)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '12px sans-serif';\n var wstring = 'Ang';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,315,790);\n\n \n return c;\n ", "type": "html", "language": "javascript", "parameters": [["x", "number"], ["y", "number"], ["z", "number"]]}, "tri5": {"definition": "var c = document.createElement('canvas');\n $(c).attr('width',700).attr('height',900);\n var context = c.getContext('2d');\n\n context.beginPath();\n context.moveTo(300,800);\n context.lineTo((x*8+300),800);\n context.lineTo((x*8+300),(800-(y*8)));\n context.closePath();\n context.stroke();\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = x+'mm';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((8*x)/2)),820);\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = y+'mm';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(320+((8*x))),(800-((y*8)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'X';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(280+((8*x)/2)),(800-((y*8)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '12px sans-serif';\n var wstring = 'Ang';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,315,790);\n\n \n return c;", "type": "html", "language": "javascript", "parameters": [["x", "number"], ["y", "number"], ["z", "number"]]}, "tri4": {"definition": "\nvar c = document.createElement('canvas');\n $(c).attr('width',900).attr('height',900);\n var context = c.getContext('2d');\n\n context.beginPath();\n context.moveTo(300,(800-(y*8)));\n context.lineTo((x*8+300),800-(y*8));\n context.lineTo((x*8+300),(800));\n context.closePath();\n context.stroke();\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'X';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((8*x)/2)),790-(y*8));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'Z';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(400+((8*x)/8)),(800-((y*8)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '12px sans-serif';\n var wstring = 'Ang';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((8*x)/8)),(820-((y*8))));\n\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'Y';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(310+((8*x))),(800-((y*8)/2)));\n\n \n\n return c;\n ", "type": "html", "language": "javascript", "parameters": [["x", "number"], ["x1", "number"], ["y", "number"]]}, "tri7": {"definition": "\nvar c = document.createElement('canvas');\n $(c).attr('width',900).attr('height',900);\n var context = c.getContext('2d');\n\n context.beginPath();\n context.moveTo(300,(800-(y*8)));\n context.lineTo((x*8+300),800-(y*8));\n context.lineTo((x*8+300),(800));\n context.closePath();\n context.stroke();\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'X';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((8*x)/2)),790-(y*8));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = x1 + 'mm';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((8*x)/8)),(800-((y*8)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '12px sans-serif';\n var wstring = 'Ang';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((8*x)/8)),(820-((y*8))));\n\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = x+'mm';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(310+((8*x))),(800-((y*8)/2)));\n\n \n\n return c;\n ", "type": "html", "language": "javascript", "parameters": [["x", "number"], ["x1", "number"], ["y", "number"]]}, "tri6": {"definition": "x=b\ny=c\n\nvar c = document.createElement('canvas');\n $(c).attr('width',900).attr('height',900);\n var context = c.getContext('2d');\n\n context.beginPath();\n context.moveTo(300,800);\n context.lineTo((x*12+300),800);\n context.lineTo((300),(800-(y*12)));\n context.closePath();\n context.stroke();\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = a+'mm';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((12*x)/2)),(800-((y*12)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'X';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((12*x)/2)),820);\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = x+'mm';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,240,(800-((y*12)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '12px sans-serif';\n var wstring = 'Ang';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,305,(840-(y*12)));\n\n \n\n return c;\n ", "type": "html", "language": "javascript", "parameters": [["a", "number"], ["b", "number"], ["c", "number"], ["d", "number"]]}, "tri3": {"definition": "\nvar c = document.createElement('canvas');\n $(c).attr('width',900).attr('height',900);\n var context = c.getContext('2d');\n\n context.beginPath();\n context.moveTo(300,800);\n context.lineTo((x*12+300),800);\n context.lineTo((300),(800-(y*12)));\n context.closePath();\n context.stroke();\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'y';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((12*x)/2)),815);\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'x';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(310+((12*x)/2)),(800-(y*12)/2));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'Z';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,270,(800-((y*12)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '12px sans-serif';\n var wstring = 'Ang';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(250+(x*12)),790);\n\n \n\n return c;\n ", "type": "html", "language": "javascript", "parameters": [["x", "number"], ["y", "number"], ["a", "number"]]}, "tri2": {"definition": "x=b\ny=c\n\nvar c = document.createElement('canvas');\n $(c).attr('width',900).attr('height',900);\n var context = c.getContext('2d');\n\n context.beginPath();\n context.moveTo(300,800);\n context.lineTo((x*12+300),800);\n context.lineTo((300),(800-(y*12)));\n context.closePath();\n context.stroke();\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'Z';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((12*x)/2)),(800-((y*12)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'x';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,(300+((12*x)/2)),820);\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '20px sans-serif';\n var wstring = 'y';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,280,(800-((y*12)/2)));\n\n //draw labels\n context.fillStyle = '#000';\n context.font = '12px sans-serif';\n var wstring = 'Ang';\n var tw = context.measureText(wstring).width;\n context.fillText(wstring,305,(840-(y*12)));\n\n \n\n return c;\n ", "type": "html", "language": "javascript", "parameters": [["a", "number"], ["b", "number"], ["c", "number"], ["d", "number"]]}}, "ungrouped_variables": ["ang1", "lent1", "ans1", "l21", "ang2", "lent2", "ans2", "l22", "l23", "l31", "l32", "l33", "ans3"], "name": "Q1.1 Pythagoras' Theorem and naming sides of right angled triangle", "tags": ["rebelmaths"], "preamble": {"css": "", "js": ""}, "advice": "

 $x^2 = \\var{lent1}^2 + \\var{lent2}^2$

\n

$x = \\sqrt(\\var{lent1}^2 + \\var{lent2}^2)$

\n

$x = \\var{ans1}$

\n

\n

$\\var{l21}^2 = x^2 + \\var{l22}^2$

\n

$x^2 = \\var{l21}^2 - \\var{l22}^2$

\n

$x = \\sqrt(\\var{l21}^2 - \\var{l22}^2)$

\n

$x = \\var{ans2}$

\n

\n

$\\var{l32}^2 = x^2 + \\var{l31}^2$

\n

$x^2 = \\var{l32}^2 - \\var{l31}^2$

\n

$x = \\sqrt(\\var{l32}^2 - \\var{l31}^2)$

\n

$x = \\var{ans3}$

", "rulesets": {}, "parts": [{"stepsPenalty": 0, "prompt": "

Write the name of each side in the correct box:

\n

Note: The bottom right angle is a right angle (90$^{\\circ}$).

\n

{tri(30,45,56)}

\n

x = [[0]]

\n

y = [[1]]

\n

z = [[2]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

The hypotenuse is the side across from the right angle.

\n

The line touching the important angle is called it's adjacent line.

\n

The line opposite the important angle is called it's opposite line.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "Opposite", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "Hypotenuse", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "Adjacent", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

Write the name of each side in the correct box:

\n

Note: The bottom left angle is a right angle (90$^{\\circ}$).

\n

{tri2(25,19,16,48)}

\n

x = [[0]]

\n

y = [[1]]

\n

z = [[2]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "Opposite", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "Adjacent", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "Hypotenuse", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

Write the name of each side in the correct box:

\n

Note: The bottom left angle is a right angle (90$^{\\circ}$).

\n

{tri3(10,33,73)}

\n

x = [[0]]

\n

y = [[1]]

\n

z = [[2]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "Hypotenuse", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "Adjacent", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "Opposite", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

Write the name of each side in the correct box:

\n

Note: The top right angle is a right angle (90$^{\\circ}$).

\n

{tri4(60,78,48)}

\n

x = [[0]]

\n

y = [[1]]

\n

z = [[2]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "Adjacent", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "Opposite", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "Hypotenuse", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

Find the value of x:

\n

Note: The bottom right angle is a right angle (90$^{\\circ}$).

\n

{tri5(lent1,lent2,ang1)}

\n

x = [[0]] mm

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ans1}", "strictPrecision": false, "minValue": "{ans1}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

Find the value of x:

\n

Note: The bottom left angle is a right angle (90$^{\\circ}$).

\n

{tri6(l21,l22,l23,ang2)}

\n

x = [[0]] mm

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ans2}", "strictPrecision": false, "minValue": "{ans2}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

Find the value of x:

\n

Note: The bottom left angle is a right angle (90$^{\\circ}$).

\n

{tri7(l31,l32,l33)}

\n

x = [[0]] mm

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ans3}", "strictPrecision": false, "minValue": "{ans3}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

Write Adjacent, Opposite or Hypotenuse in the label answer boxes that correspond to the triangle above them, in parts(a - d).

\n

The angle labelled \"ang\" is the important one in each case.

\n

In parts(e - g), find the length of the unknown side using Pythagorass Theorem.

\n

Solve the following mensuration questions to 2 decimal places:

\n

Note: You may need to scroll down to see the diagrams.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"ans1": {"definition": "sqrt(lent1^2+lent2^2)", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "ans2": {"definition": "sqrt(l21^2-l22^2)", "templateType": "anything", "group": "Ungrouped variables", "name": "ans2", "description": ""}, "ans3": {"definition": "sqrt(l32^2-l31^2)", "templateType": "anything", "group": "Ungrouped variables", "name": "ans3", "description": ""}, "lent1": {"definition": "random(25..35)", "templateType": "anything", "group": "Ungrouped variables", "name": "lent1", "description": ""}, "lent2": {"definition": "random(45..60)", "templateType": "anything", "group": "Ungrouped variables", "name": "lent2", "description": ""}, "l21": {"definition": "random(30..45)", "templateType": "anything", "group": "Ungrouped variables", "name": "l21", "description": ""}, "l23": {"definition": "random(9..15)", "templateType": "anything", "group": "Ungrouped variables", "name": "l23", "description": ""}, "l22": {"definition": "random(12..18)", "templateType": "anything", "group": "Ungrouped variables", "name": "l22", "description": ""}, "l32": {"definition": "random(60..70)", "templateType": "anything", "group": "Ungrouped variables", "name": "l32", "description": ""}, "ang1": {"definition": "random(63..65)", "templateType": "anything", "group": "Ungrouped variables", "name": "ang1", "description": ""}, "ang2": {"definition": "random(48..65)", "templateType": "anything", "group": "Ungrouped variables", "name": "ang2", "description": ""}, "l31": {"definition": "random(30.5..45.5)", "templateType": "anything", "group": "Ungrouped variables", "name": "l31", "description": ""}, "l33": {"definition": "random(40..50)", "templateType": "anything", "group": "Ungrouped variables", "name": "l33", "description": ""}}, "metadata": {"description": "

Pythagoras' Theorem and naming sides of right angled triangle

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}]}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}