// Numbas version: exam_results_page_options {"name": "Bewerkingen met verzamelingen kopie nog aan te passen", "extensions": [], "custom_part_types": [], "resources": [["question-resources/384px-Venn0111.svg.png", "/srv/numbas/media/question-resources/384px-Venn0111.svg.png"], ["question-resources/384px-Venn0001.svg.png", "/srv/numbas/media/question-resources/384px-Venn0001.svg.png"], ["question-resources/384px-Venn0110.svg.png", "/srv/numbas/media/question-resources/384px-Venn0110.svg.png"], ["question-resources/240px-Venn0100.svg.png", "/srv/numbas/media/question-resources/240px-Venn0100.svg.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "name": "Bewerkingen met verzamelingen kopie nog aan te passen", "rulesets": {}, "extensions": [], "statement": "

Gegeven: De verzameling $A = \\var{A}$ and $B = \\var{B}$. Zoek de unie, de doorsnede en het verschil.  Gebruik de code  set(1,2,3) om  $\\left\\{1,2,3\\right\\}$ te antwoorden.

", "functions": {}, "variables": {"B": {"description": "", "templateType": "anything", "name": "B", "definition": "union(set(listB),set(listN))", "group": "Ungrouped variables"}, "listA": {"description": "", "templateType": "anything", "name": "listA", "definition": "repeat(random(5..9),4)", "group": "Ungrouped variables"}, "listN": {"description": "", "templateType": "anything", "name": "listN", "definition": "repeat(random(1..9),2)", "group": "Ungrouped variables"}, "listB": {"description": "", "templateType": "anything", "name": "listB", "definition": "repeat(random(0..4),4)", "group": "Ungrouped variables"}, "A": {"description": "", "templateType": "anything", "name": "A", "definition": "union(set(listA),set(listN))", "group": "Ungrouped variables"}}, "variablesTest": {"condition": "not(listA = listB)", "maxRuns": 100}, "metadata": {"description": "

Simple exercises introducing the fundamental set operations, and NUMBAS syntax for sets.

", "licence": "Creative Commons Attribution-ShareAlike 4.0 International"}, "preamble": {"js": "", "css": ""}, "tags": [], "parts": [{"scripts": {"validate": {"script": "try {\n var tree = Numbas.jme.compile(this.studentAnswer);\n var type = Numbas.jme.evaluate(tree,this.question.scope).type;\n \n if ('set' != type) { \n this.giveWarning(\"Your answer must be a set. Use the syntax set(1,2,3) for the set $\\\\left\\\\{1,2,3\\\\right\\\\}$\");\n return false;\n }\n \n return true;\n}\ncatch(e) {\n this.markingComment(e);\n return false;\n}", "order": "instead"}}, "customName": "", "failureRate": 1, "checkingType": "absdiff", "type": "jme", "customMarkingAlgorithm": "", "steps": [{"scripts": {}, "customName": "", "useCustomName": false, "type": "information", "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "marks": 0, "prompt": "

$A \\cup B$ =

\n

Je zoekt de verzameling met de getallen die OFWEL in de verzameling van A ofwel in de verzameling van B zitten.

", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "showCorrectAnswer": true, "variableReplacements": []}], "extendBaseMarkingAlgorithm": true, "showPreview": true, "answer": "{union(A,B)}", "checkingAccuracy": 0.001, "useCustomName": false, "vsetRangePoints": 5, "variableReplacementStrategy": "originalfirst", "checkVariableNames": false, "marks": 1, "stepsPenalty": 0, "prompt": "

$A \\cup B$ =

", "vsetRange": [0, 1], "variableReplacements": [], "unitTests": [], "showCorrectAnswer": true, "valuegenerators": [], "showFeedbackIcon": true}, {"scripts": {"validate": {"script": "try {\n var tree = Numbas.jme.compile(this.studentAnswer);\n var type = Numbas.jme.evaluate(tree,this.question.scope).type;\n \n if ('set' != type) { \n this.giveWarning(\"Your answer must be a set. Use the syntax set(1,2,3) for the set $\\\\left\\\\{1,2,3\\\\right\\\\}$\");\n return false;\n }\n \n return true;\n}\ncatch(e) {\n this.markingComment(e);\n return false;\n}", "order": "instead"}}, "customName": "", "failureRate": 1, "checkingType": "absdiff", "type": "jme", "customMarkingAlgorithm": "", "steps": [{"scripts": {}, "customName": "", "useCustomName": false, "type": "information", "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "marks": 0, "prompt": "

$A \\cap B$ =

\n

Je zoekt de verzameling met de getallen die in de verzameling van A EN in de verzameling van B zitten.

", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "showCorrectAnswer": true, "variableReplacements": []}], "extendBaseMarkingAlgorithm": true, "showPreview": true, "answer": "{intersection(A,B)}", "checkingAccuracy": 0.001, "useCustomName": false, "vsetRangePoints": 5, "variableReplacementStrategy": "originalfirst", "checkVariableNames": false, "marks": 1, "stepsPenalty": 0, "prompt": "

$A \\cap B$ =

", "vsetRange": [0, 1], "variableReplacements": [], "unitTests": [], "showCorrectAnswer": true, "valuegenerators": [], "showFeedbackIcon": true}, {"scripts": {"validate": {"script": "try {\n var tree = Numbas.jme.compile(this.studentAnswer);\n var type = Numbas.jme.evaluate(tree,this.question.scope).type;\n \n if ('set' != type) { \n this.giveWarning(\"Your answer must be a set. Use the syntax set(1,2,3) for the set $\\\\left\\\\{1,2,3\\\\right\\\\}$\");\n return false;\n }\n \n return true;\n}\ncatch(e) {\n this.markingComment(e);\n return false;\n}", "order": "instead"}}, "customName": "", "failureRate": 1, "checkingType": "absdiff", "type": "jme", "customMarkingAlgorithm": "", "steps": [{"scripts": {}, "customName": "", "useCustomName": false, "type": "information", "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "marks": 0, "prompt": "

$A\\setminus B$ =

\n

Je zoekt de verzameling met de getallen die in de verzameling van A MAAR NIET in de verzameling van B zitten.

\n

", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "showCorrectAnswer": true, "variableReplacements": []}], "extendBaseMarkingAlgorithm": true, "showPreview": true, "answer": "{A-B}", "checkingAccuracy": 0.001, "useCustomName": false, "vsetRangePoints": 5, "variableReplacementStrategy": "originalfirst", "checkVariableNames": false, "marks": 1, "stepsPenalty": 0, "prompt": "

$A\\setminus B$ =

", "vsetRange": [0, 1], "variableReplacements": [], "unitTests": [], "showCorrectAnswer": true, "valuegenerators": [], "showFeedbackIcon": true}, {"scripts": {"validate": {"script": "try {\n var tree = Numbas.jme.compile(this.studentAnswer);\n var type = Numbas.jme.evaluate(tree,this.question.scope).type;\n \n if ('set' != type) { \n this.giveWarning(\"Your answer must be a set. Use the syntax set(1,2,3) for the set $\\\\left\\\\{1,2,3\\\\right\\\\}$\");\n return false;\n }\n \n return true;\n}\ncatch(e) {\n this.markingComment(e);\n return false;\n}", "order": "instead"}}, "customName": "", "failureRate": 1, "checkingType": "absdiff", "type": "jme", "customMarkingAlgorithm": "", "steps": [{"scripts": {}, "customName": "", "useCustomName": false, "type": "information", "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "marks": 0, "prompt": "

$B\\setminus A$ =

\n

Je zoekt de verzameling met de getallen die in de verzameling van B MAAR NIET in de verzameling van A zitten.

\n

", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "showCorrectAnswer": true, "variableReplacements": []}], "extendBaseMarkingAlgorithm": true, "showPreview": true, "answer": "{B-A}", "checkingAccuracy": 0.001, "useCustomName": false, "vsetRangePoints": 5, "variableReplacementStrategy": "originalfirst", "checkVariableNames": false, "marks": 1, "stepsPenalty": 0, "prompt": "

$B\\setminus A$ =

", "vsetRange": [0, 1], "variableReplacements": [], "unitTests": [], "showCorrectAnswer": true, "valuegenerators": [], "showFeedbackIcon": true}, {"shuffleChoices": true, "scripts": {}, "customName": "", "maxAnswers": 0, "choices": ["

$A\\cup B$

", "

$A \\cap B$

", "

$A\\setminus B$

"], "type": "m_n_x", "warningType": "none", "customMarkingAlgorithm": "", "maxMarks": "1", "showCellAnswerState": true, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "answers": ["

", "

", "

"], "unitTests": [], "useCustomName": false, "minAnswers": 0, "displayType": "radiogroup", "marks": 0, "prompt": "

Welke notatie komt overeen met het rode deel op het venndiagram.
$A$ is de linkerverzameling en$B$ de rechterverzameling.

\n

", "minMarks": 0, "matrix": [["1", 0, 0], [0, "1", 0], [0, 0, "1"]], "layout": {"type": "all", "expression": ""}, "showCorrectAnswer": true, "shuffleAnswers": true, "variableReplacements": []}], "advice": "

The union of two sets is the set of elements from either set

\n

$A \\cup B = \\left\\{ x\\, |\\, x \\in A \\text{ or } x \\in B\\right\\}$

\n
\n

The intersetction of two sets is the set of elements common to both sets

\n

$A \\cap B = \\left\\{ x\\, |\\, x \\in A \\text{ and } x \\in B\\right\\}$

\n
\n

The difference $A-B$ is the set of elements from $A$ which are not in $B$:

\n

$A - B = \\left\\{ x \\in A |\\, x \\notin B\\right\\}$

\n
\n

Similarly, the difference $B-A$ is the set of elements from $B$ which are not in $A$:

\n

$B - A = \\left\\{ x \\in B |\\, x \\notin A\\right\\}$

\n
\n

The symmetric difference $A \\Delta B$ is the union of the set differences, but it can also be expressed as the union minus the intersection

\n

$A \\Delta B = (A \\cup B) - (A \\cap B)$.

", "ungrouped_variables": ["listA", "listB", "A", "B", "listN"], "contributors": [{"name": "Daniel Mansfield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/743/"}, {"name": "Johan Maertens", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1301/"}, {"name": "Sean Gardiner", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2443/"}]}]}], "contributors": [{"name": "Daniel Mansfield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/743/"}, {"name": "Johan Maertens", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1301/"}, {"name": "Sean Gardiner", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2443/"}]}