// Numbas version: exam_results_page_options {"name": "SIT190 - Week 3 - Quiz - Short", "metadata": {"description": "", "licence": "None specified"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "showstudentname": true, "question_groups": [{"name": "Functions and Matrices", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questions": [{"name": "Musa's copy of functions-3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Luke Park", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/826/"}, {"name": "Anna Strzelecka", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2945/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}], "tags": [], "metadata": {"description": "

A question to practice functions, graphs and domains

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Functons, finding the domain and range of functons

", "advice": "

Click 'Try another question like this one' if you need more practice.

", "rulesets": {}, "variables": {"m2": {"name": "m2", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything"}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything"}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-20..20)", "description": "", "templateType": "anything"}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "random(-20..20)", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything"}, "cc": {"name": "cc", "group": "Ungrouped variables", "definition": "random(-20..20 except 0)", "description": "", "templateType": "anything"}, "m3": {"name": "m3", "group": "Ungrouped variables", "definition": "random(2..9 except 0)", "description": "", "templateType": "anything"}, "c3": {"name": "c3", "group": "Ungrouped variables", "definition": "random(-15..15 except 0)", "description": "", "templateType": "anything"}, "m4": {"name": "m4", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything"}, "c4": {"name": "c4", "group": "Ungrouped variables", "definition": "random(2..15 except 0)", "description": "", "templateType": "anything"}, "m22": {"name": "m22", "group": "Ungrouped variables", "definition": "random(2..20)", "description": "", "templateType": "anything"}, "m5": {"name": "m5", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["m", "c", "m2", "c2", "a", "b", "cc", "m3", "c3", "m4", "c4", "m22", "m5"], "variable_groups": [], "functions": {"": {"parameters": [], "type": "number", "language": "jme", "definition": ""}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Find the domain of function \\begin{align} y &= \\frac{\\simplify {{m2}x+{c2}}}{ \\simplify {{m}x+{c}} }\\text{.}
\\end{align}

\n

Domain: all $x$ except [[0]]

\n

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minValue": "-c/m", "maxValue": "-c/m", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Find the domain and range of function \\begin{align} y &= \\simplify{{-m5}} - \\sqrt{\\simplify {{m3}x+{c3}}}\\text{.}
\\end{align}

\n

Put \">=\" for \"$\\ge$\" and \"<=\" for \"$\\le$\", otherwise \">\" or \"<\".

\n

Domain: all $x$ satisfying $x$  [[2]] [[0]]

\n

Range: all $y$ satisfying $y$  [[3]] [[1]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minValue": "-c3/m3", "maxValue": "-c3/m3", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minValue": "-m5", "maxValue": "-m5", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": ">=", "displayAnswer": ">=", "matchMode": "regex"}, {"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "<=", "displayAnswer": "less than or equal to", "matchMode": "regex"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Find the domain of function \\begin{align}y &= \\sqrt{\\frac{\\simplify {{c4}}}{ \\simplify {{m22}x+{c2}} }}\\text{.}
\\end{align}

\n

Domain: all $x$ satisfying $x$[[1]][[0]]

\n

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minValue": "-c2/m22", "maxValue": "-c2/m22", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": ">", "displayAnswer": ">", "matchMode": "regex"}], "sortAnswers": false}]}, {"name": "Musa's copy of Musa's copy of Matrices - 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Timur Zaripov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3272/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}], "tags": [], "metadata": {"description": "

Multiplication and adding matrices.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "

To add matrices, just add corresponding elements together.

\n

a)

\n

\\begin{align}
\\mathbf{AB} &= \\var{A}\\var{B} \\\\
&= \\begin{pmatrix} \\simplify[]{ {a[0][0]}*{b[0][0]}+{a[0][1]}*{b[1][0]} } & \\simplify[]{ {a[0][0]}*{b[0][1]} + {a[0][1]}*{b[1][1]} } \\\\ \\simplify[]{ {a[1][0]}*{b[0][0]} + {a[1][1]}*{b[1][0]} } & \\simplify[]{ {a[1][0]}*{b[0][1]} + {a[1][1]}*{b[1][1]} } \\end{pmatrix} \\\\
&= \\var{a*b}
\\end{align}

\n

b)

\n

\\begin{align}
\\mathbf{BA} &= \\var{B}\\var{A} \\\\
&= \\begin{pmatrix} \\simplify[]{ {b[0][0]}*{a[0][0]}+{b[0][1]}*{a[1][0]} } & \\simplify[]{ {b[0][0]}*{a[0][1]} + {b[0][1]}*{a[1][1]} } \\\\ \\simplify[]{ {b[1][0]}*{a[0][0]} + {b[1][1]}*{a[1][0]} } & \\simplify[]{ {b[1][0]}*{a[0][1]} + {b[1][1]}*{a[1][1]} } \\end{pmatrix} \\\\
&= \\var{b*a}
\\end{align}

\n

c)

\n

\\begin{align}
\\mathbf{CB} &= \\var{C}\\var{B} \\\\
&= \\begin{pmatrix} \\simplify[]{ {c[0][0]}*{b[0][0]}+{c[0][1]}*{b[1][0]} } & \\simplify[]{ {c[0][0]}*{b[0][1]} + {c[0][1]}*{b[1][1]} } \\\\ \\simplify[]{ {c[1][0]}*{b[0][0]} + {c[1][1]}*{b[1][0]} } & \\simplify[]{ {c[1][0]}*{b[0][1]} + {c[1][1]}*{b[1][1]} } \\end{pmatrix} \\\\
&= \\var{c*b}
\\end{align}

\n

d)

\n

\\begin{align}
\\mathbf{AC} &= \\var{A}\\var{C} \\\\
&= \\begin{pmatrix} \\simplify[]{ {a[0][0]}*{c[0][0]}+{a[0][1]}*{c[1][0]} } & \\simplify[]{ {a[0][0]}*{c[0][1]} + {a[0][1]}*{c[1][1]} } \\\\ \\simplify[]{ {a[1][0]}*{c[0][0]} + {a[1][1]}*{c[1][0]} } & \\simplify[]{ {a[1][0]}*{c[0][1]} + {a[1][1]}*{c[1][1]} } \\end{pmatrix} \\\\
&= \\var{a*c}
\\end{align}

", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers"]}, "variables": {"c": {"name": "c", "group": "Ungrouped variables", "definition": "matrix([ [random(1,0,4), a[0][1]+b[0][1]], [random(2..5),random(0,1)] ])", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "matrix([ [random(-2,1,2),random(1..4)], [random(-2..2),random(1..3)] ])", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "matrix([ [random(-3,-1,0,3),random(-3..1)], [random(2,3),random(-3..-1)] ])", "description": "", "templateType": "anything"}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "matrix([ [random(-3,0,3),random(-2,1,2),random(1..4)], [random(-2..2),random(1..3),random(-2..0)] ])", "description": "", "templateType": "anything"}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "matrix([ [random(-3,0,3),random(-2,1,2),random(1..4)], [random(-2..2),random(1..3),random(-2..0)] ])", "description": "", "templateType": "anything"}, "b1": {"name": "b1", "group": "Ungrouped variables", "definition": "matrix([ [random(-3,0,3),random(-2,1,2)],[random(1..4), random(-2..2)],[random(1..3),random(-2..0)] ])", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "a1", "c1", "b1"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Given matrices $A = \\var{A1}, B=\\var{B1}, C=\\var{C1}$:

\n

   1) Identify pairs that can be added:[[0]]

\n

   2) Identify pairs that cannot be multiplied:[[1]]

", "gaps": [{"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "choices": ["A and A", "A and B", "A and C", "B and C"], "matrix": ["1", 0, "1", 0], "distractors": ["", "", "", ""]}, {"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "choices": ["A x B", "A x C", "C x B", "B x C", "C x A", "B x A"], "matrix": ["0", "1", 0, 0, "1", 0], "distractors": ["", "", "", "", "", ""]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Given matrices $\\mathbf{A}$ and $\\mathbf{B}$ choose the correct matrix size and calculate:

\n

1) $\\mathbf{A+B} = \\var{A1}+\\var{C1} = $  [[0]]

\n

2) $\\mathbf{A \\times B} = \\var{A1}\\var{B1} = $   [[1]]

\n

", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "correctAnswer": "a1+c1", "correctAnswerFractions": false, "numRows": "1", "numColumns": "1", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": "2", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "correctAnswer": "a1*b1", "correctAnswerFractions": false, "numRows": "1", "numColumns": "1", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}], "sortAnswers": false}]}]}], "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "", "feedbackmessages": []}, "contributors": [{"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}], "extensions": [], "custom_part_types": [], "resources": []}