// Numbas version: exam_results_page_options {"name": "Harry's copy of 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": [{"parts": [{"displayColumns": 0, "type": "1_n_2", "showCorrectAnswer": true, "choices": ["

Right angled triangles only

", "

Equilateral triangles only

", "

All triangles

"], "distractors": ["", "", ""], "matrix": ["1", 0, 0], "shuffleChoices": true, "scripts": {}, "displayType": "radiogroup", "showFeedbackIcon": true, "marks": 0, "variableReplacements": [], "prompt": "

Pythagoras' theorem applies to...

", "minMarks": 0, "maxMarks": "1", "variableReplacementStrategy": "originalfirst"}, {"displayColumns": 0, "type": "1_n_2", "showCorrectAnswer": true, "choices": ["

A

", "

B

", "

C

"], "distractors": ["", "", ""], "matrix": [0, 0, "1"], "shuffleChoices": true, "scripts": {}, "displayType": "radiogroup", "showFeedbackIcon": true, "marks": 0, "variableReplacements": [], "prompt": "

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

", "minMarks": 0, "maxMarks": "1", "variableReplacementStrategy": "originalfirst"}, {"maxValue": "A*A", "correctAnswerFraction": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "scripts": {}, "showFeedbackIcon": false, "allowFractions": false, "minValue": "A*A", "marks": 1, "variableReplacements": [], "prompt": "

In the figure shown, calculate A2

", "variableReplacementStrategy": "originalfirst"}, {"maxValue": "C", "correctAnswerFraction": false, "strictPrecision": true, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "precisionType": "dp", "scripts": {}, "precisionPartialCredit": 0, "precision": "1", "showFeedbackIcon": true, "allowFractions": false, "minValue": "C", "marks": 1, "variableReplacements": [], "prompt": "

In the figure shown, what is the length C?

", "variableReplacementStrategy": "originalfirst", "precisionMessage": "You have not given your answer to the correct precision.", "showPrecisionHint": true, "correctAnswerStyle": "plain"}, {"displayColumns": "1", "type": "1_n_2", "showCorrectAnswer": true, "choices": ["

$\\var{wrongTV1}$ inches

", "

$\\var{wrongTV2}$ inches

", "

$\\var{wrongTV3}$ inches

", "

$\\var{rightTV}$ inches

"], "distractors": ["", "", "", ""], "matrix": [0, 0, 0, "1"], "shuffleChoices": true, "scripts": {}, "displayType": "radiogroup", "showFeedbackIcon": true, "marks": 0, "variableReplacements": [], "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, "maxMarks": "1", "variableReplacementStrategy": "originalfirst"}, {"maxValue": "ladderB", "correctAnswerFraction": false, "strictPrecision": true, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "precisionType": "dp", "scripts": {}, "precisionPartialCredit": 0, "precision": "1", "showFeedbackIcon": true, "allowFractions": false, "minValue": "ladderB", "marks": 1, "variableReplacements": [], "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?

", "variableReplacementStrategy": "originalfirst", "precisionMessage": "You have not given your answer to the correct precision.", "showPrecisionHint": true, "correctAnswerStyle": "plain"}], "extensions": [], "functions": {}, "ungrouped_variables": ["A", "B", "C", "A2", "ladderA", "ladderB", "ladderC", "tvA", "tvB", "tvC", "wrongTV1", "wrongTV2", "wrongTV3", "rightTV"], "variables": {"A": {"templateType": "anything", "name": "A", "description": "", "group": "Ungrouped variables", "definition": "random(1..15)"}, "ladderC": {"templateType": "anything", "name": "ladderC", "description": "", "group": "Ungrouped variables", "definition": "random(8..20)"}, "B": {"templateType": "anything", "name": "B", "description": "", "group": "Ungrouped variables", "definition": "random(12..40)"}, "ladderB": {"templateType": "anything", "name": "ladderB", "description": "", "group": "Ungrouped variables", "definition": "precround(sqrt(ladderC*ladderC - ladderA*ladderA), 1)"}, "C": {"templateType": "anything", "name": "C", "description": "", "group": "Ungrouped variables", "definition": "sqrt(A*A + B*B)"}, "ladderA": {"templateType": "anything", "name": "ladderA", "description": "", "group": "Ungrouped variables", "definition": "random(1..7)"}, "tvC": {"templateType": "anything", "name": "tvC", "description": "", "group": "Ungrouped variables", "definition": "sqrt(tvA*tvA + tvB*tvB)"}, "rightTV": {"templateType": "anything", "name": "rightTV", "description": "", "group": "Ungrouped variables", "definition": "floor(tvC)"}, "tvB": {"templateType": "anything", "name": "tvB", "description": "", "group": "Ungrouped variables", "definition": "floor(tvA*(16/9))"}, "tvA": {"templateType": "anything", "name": "tvA", "description": "", "group": "Ungrouped variables", "definition": "random(8..18)"}, "wrongTV1": {"templateType": "anything", "name": "wrongTV1", "description": "", "group": "Ungrouped variables", "definition": "rightTV-random(1..5)"}, "wrongTV2": {"templateType": "anything", "name": "wrongTV2", "description": "", "group": "Ungrouped variables", "definition": "rightTV - random(6..12)"}, "wrongTV3": {"templateType": "anything", "name": "wrongTV3", "description": "", "group": "Ungrouped variables", "definition": "rightTV + random(1..5)"}, "A2": {"templateType": "anything", "name": "A2", "description": "", "group": "Ungrouped variables", "definition": "A*A"}}, "name": "Harry's copy of Pythagoras' Theorem", "rulesets": {}, "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.

", "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}$

", "variable_groups": [], "preamble": {"js": "", "css": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "metadata": {"description": "

Questions about Pythagoras' theorem

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "contributors": [{"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}]}]}], "contributors": [{"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}]}