// Numbas version: exam_results_page_options {"name": "Pythagoras' Theorem", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Pythagoras_triangle.png", "/srv/numbas/media/question-resources/Pythagoras_triangle.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["A", "B", "C", "A2", "ladderA", "ladderB", "ladderC", "tvA", "tvB", "tvC", "wrongTV1", "wrongTV2", "wrongTV3", "rightTV"], "parts": [{"displayType": "radiogroup", "scripts": {}, "marks": 0, "choices": ["

Right angled triangles only

", "

Equilateral triangles only

", "

All triangles

"], "maxMarks": "1", "displayColumns": 0, "shuffleChoices": true, "showCorrectAnswer": true, "prompt": "

Pythagoras' theorem applies to...

", "minMarks": 0, "matrix": ["1", 0, 0], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "showFeedbackIcon": true, "distractors": ["", "", ""], "type": "1_n_2"}, {"displayType": "radiogroup", "scripts": {}, "marks": 0, "choices": ["

A

", "

B

", "

C

"], "maxMarks": "1", "displayColumns": 0, "shuffleChoices": true, "showCorrectAnswer": true, "prompt": "

In the figure shown, which side of the triangle is the hypotenuse?

", "minMarks": 0, "matrix": [0, 0, "1"], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "showFeedbackIcon": true, "distractors": ["", "", ""], "type": "1_n_2"}, {"scripts": {}, "marks": 1, "showCorrectAnswer": true, "correctAnswerStyle": "plain", "prompt": "

In the figure shown, calculate A2

", "minValue": "A*A", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "maxValue": "A*A", "showFeedbackIcon": false, "type": "numberentry"}, {"precisionMessage": "You have not given your answer to the correct precision.", "minValue": "C", "scripts": {}, "marks": 1, "notationStyles": ["plain", "en", "si-en"], "showCorrectAnswer": true, "correctAnswerStyle": "plain", "precisionPartialCredit": 0, "prompt": "

In the figure shown, what is the length C?

", "precisionType": "dp", "maxValue": "C", "showPrecisionHint": true, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "strictPrecision": true, "variableReplacements": [], "correctAnswerFraction": false, "showFeedbackIcon": true, "precision": "1", "type": "numberentry"}, {"displayType": "radiogroup", "scripts": {}, "marks": 0, "choices": ["

$\\var{wrongTV1}$ inches

", "

$\\var{wrongTV2}$ inches

", "

$\\var{wrongTV3}$ inches

", "

$\\var{rightTV}$ inches

"], "maxMarks": "1", "displayColumns": "1", "shuffleChoices": true, "showCorrectAnswer": true, "prompt": "

Rachel wants to buy a TV to fit into her cabinet. The cabinet is $\\var{tvA}$ inches high and $\\var{tvB}$ inches wide. TVs are sold by their diagonal size. What is the largest TV size Rachel can fit in her cabinet?

", "minMarks": 0, "matrix": [0, 0, 0, "1"], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "showFeedbackIcon": true, "distractors": ["", "", "", ""], "type": "1_n_2"}, {"precisionMessage": "You have not given your answer to the correct precision.", "minValue": "ladderB", "scripts": {}, "marks": 1, "notationStyles": ["plain", "en", "si-en"], "showCorrectAnswer": true, "correctAnswerStyle": "plain", "precisionPartialCredit": 0, "prompt": "

Rachel needs to paint the wall of her house. The ladder is $\\var{ladderC}$ metres long. The bottom of the ladder must be $\\var{ladderA}$ metres away from the wall, so that she doesn't fall off. How high can Rachel's ladder reach up the wall?

", "precisionType": "dp", "maxValue": "ladderB", "showPrecisionHint": true, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "strictPrecision": true, "variableReplacements": [], "correctAnswerFraction": false, "showFeedbackIcon": true, "precision": "1", "type": "numberentry"}], "statement": "

This is a right-angled triangle, with side lengths labelled A, B and C.

\n

{image('resources/question-resources/Pythagoras_triangle.png')}

\n

A = $\\var{A}$

\n

B = $\\var{B}$

", "name": "Pythagoras' Theorem", "variable_groups": [], "rulesets": {}, "tags": [], "preamble": {"js": "", "css": ""}, "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

Remember Pythagoras' Theorem is: a2 + b2 = c2

\n

You can use this to work out the length of a side of a right-angled triangle whenever you have the length of the other two sides.

", "variables": {"ladderB": {"name": "ladderB", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "precround(sqrt(ladderC*ladderC - ladderA*ladderA), 1)"}, "B": {"name": "B", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(12..40)"}, "A2": {"name": "A2", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "A*A"}, "wrongTV2": {"name": "wrongTV2", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "rightTV - random(6..12)"}, "rightTV": {"name": "rightTV", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "floor(tvC)"}, "A": {"name": "A", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(1..15)"}, "wrongTV3": {"name": "wrongTV3", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "rightTV + random(1..5)"}, "C": {"name": "C", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "sqrt(A*A + B*B)"}, "tvC": {"name": "tvC", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "sqrt(tvA*tvA + tvB*tvB)"}, "tvB": {"name": "tvB", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "floor(tvA*(16/9))"}, "ladderC": {"name": "ladderC", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(8..20)"}, "ladderA": {"name": "ladderA", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(1..7)"}, "wrongTV1": {"name": "wrongTV1", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "rightTV-random(1..5)"}, "tvA": {"name": "tvA", "templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(8..18)"}}, "functions": {}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

Questions about Pythagoras' theorem

"}, "type": "question", "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}]}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}