// Numbas version: finer_feedback_settings {"name": "Operationen mit Mengen", "extensions": [], "custom_part_types": [], "resources": [["question-resources/384px-Venn0111.svg.png", "384px-Venn0111.svg.png"], ["question-resources/384px-Venn0001.svg.png", "384px-Venn0001.svg.png"], ["question-resources/384px-Venn0110.svg.png", "384px-Venn0110.svg.png"], ["question-resources/240px-Venn0100.svg.png", "240px-Venn0100.svg.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Operationen mit Mengen", "tags": [], "metadata": {"description": "

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

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

Betrachten Sie die Mengen $A = \\var{A}$ und $B = \\var{B}$. Bestimmen Sie die Vereinigungsmenge, die Schnittmenge und die Differenzmengen. 

\n

Benutzen Sie dabei bitte die Schreibweise z.B. set(1,2,3) für die Menge $\\left\\{1,2,3\\right\\}$.

", "advice": "

Die Vereinigungsmenge ist die Menge aller Elemente aus einer der beiden Mengen.

\n

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

\n
\n

Die Schnittmenge ist die Menge aller Elemente, die in beiden Mangen enthalten sind.

\n

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

\n
\n

Die Differenzmenge $A\\setminus B$ ist die Menge der Elemente aus $A$, welche nicht in$B$ enthalten sind:

\n

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

\n
\n

Analog, ist $B\\setminus A$ is die Menge der Elemente aus $B$, die nicht in $A$ enthalten sind:

\n

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

\n
\n

Die symmetrische Differenz $A \\Delta B$ is die Vereinigung der beiden Differenzmengen, kann aber auch als Vereinigungsmenge minus Schnittmenge dargestellt werden:

\n

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

", "rulesets": {}, "extensions": [], "variables": {"listA": {"name": "listA", "group": "Ungrouped variables", "definition": "repeat(random(5..9),4)", "description": "", "templateType": "anything"}, "listN": {"name": "listN", "group": "Ungrouped variables", "definition": "repeat(random(1..9),2)", "description": "", "templateType": "anything"}, "listB": {"name": "listB", "group": "Ungrouped variables", "definition": "repeat(random(0..4),4)", "description": "", "templateType": "anything"}, "B": {"name": "B", "group": "Ungrouped variables", "definition": "union(set(listB),set(listN))", "description": "", "templateType": "anything"}, "A": {"name": "A", "group": "Ungrouped variables", "definition": "union(set(listA),set(listN))", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "not(listA = listB)", "maxRuns": 100}, "ungrouped_variables": ["listA", "listB", "A", "B", "listN"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "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"}}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Was ist die Vereinigungsmenge $A \\cup B$?

", "answer": "{union(A,B)}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "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"}}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Was ist die Schnittmenge $A \\cap B$?

", "answer": "{intersection(A,B)}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "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"}}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Was ist $A\\setminus B$, die Menge der Elemente von $A$ die nicht in $B$ enthalten ist?

", "answer": "{A-B}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "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"}}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Was ist $B\\setminus A$, die Menge der Elemente von $B$ die nicht in $A$ enthalten ist?

", "answer": "{B-A}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "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"}}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What ist die Vereinigung der Differenzmengen $(A\\setminus B)\\cup(B\\setminus A)$? Diese Menge heißt auch symmetrische Differenz $A\\Delta B$.

", "answer": "{union(A-B,B-A)}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}, {"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Ordnen Sie zu: Welche Menge gehört zu welchem Venn-Diagramm, wenn der linke Kreis die Menge $A$ und der rechte Kreis die Menge $B$ darstellt.

\n

", "minMarks": 0, "maxMarks": "1", "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": true, "shuffleAnswers": true, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "choices": ["

$A\\cup B$

", "

$A \\cap B$

", "

$A \\Delta B$

", "

$A \\setminus B$

"], "matrix": [["0.25", 0, 0, 0], [0, "0.25", 0, 0], [0, 0, "0.25", 0], [0, 0, 0, "0.25"]], "layout": {"type": "all", "expression": ""}, "answers": ["

", "

", "

", "

"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Daniel Mansfield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/743/"}, {"name": "Sean Gardiner", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2443/"}, {"name": "Andreas Vohns", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3622/"}], "resources": ["question-resources/384px-Venn0111.svg.png", "question-resources/384px-Venn0001.svg.png", "question-resources/384px-Venn0110.svg.png", "question-resources/240px-Venn0100.svg.png"]}]}], "contributors": [{"name": "Daniel Mansfield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/743/"}, {"name": "Sean Gardiner", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2443/"}, {"name": "Andreas Vohns", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3622/"}]}