// Numbas version: exam_results_page_options {"name": "Right Triangle", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["unitList", "units", "a", "angleB", "angleC", "angleA", "asinA", "b", "c"], "name": "Right Triangle", "statement": "

Referring to the triangle below.

", "variables": {"c": {"description": "", "definition": "asinA*sin(radians(angleC))", "group": "Ungrouped variables", "name": "c", "templateType": "anything"}, "angleC": {"description": "", "definition": "random(30..60 except angleB)", "group": "Ungrouped variables", "name": "angleC", "templateType": "anything"}, "units": {"description": "", "definition": "random(unitList)", "group": "Ungrouped variables", "name": "units", "templateType": "anything"}, "angleA": {"description": "", "definition": "180-(angleB+angleC)", "group": "Ungrouped variables", "name": "angleA", "templateType": "anything"}, "unitList": {"description": "

Units that are to be used for the question.

", "definition": "[ \"mm\", \"cm\", \"m\", \"km\" ]", "group": "Ungrouped variables", "name": "unitList", "templateType": "list of strings"}, "a": {"description": "", "definition": "random(5..50)", "group": "Ungrouped variables", "name": "a", "templateType": "anything"}, "b": {"description": "", "definition": "asinA*sin(radians(angleB))", "group": "Ungrouped variables", "name": "b", "templateType": "anything"}, "asinA": {"description": "", "definition": "a/(sin(radians(angleA)))\n", "group": "Ungrouped variables", "name": "asinA", "templateType": "anything"}, "angleB": {"description": "

angle

{plotgraph(units,a,b,c,angleA,angleB,angleC)}

\n

What is the length of sides AB and AC?

\n

\n

AB = [[0]] {units}

\n

AC = [[1]] {units}

\n

What is angle C to the nearest degree?

\n

C = [[2]] $^{\\circ}$

", "variableReplacementStrategy": "originalfirst", "marks": 0, "type": "gapfill", "showFeedbackIcon": true, "scripts": {}}], "variablesTest": {"maxRuns": 100, "condition": "angleA<>90"}, "advice": "

Use the sine rule to calculate the sides and the properties of a triangle to find the missing angle.