// Numbas version: finer_feedback_settings {"name": "Luis's copy of set3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

In this question, the universal set is  $\\mathcal{U}=\\{x \\in \\mathbb{N}\\; | \\;x \\leq \\var{a}\\}$.

\n

Let:

\n

$A=\\{x \\in \\mathbb{N}\\;|\\;\\var{b}\\leq x \\leq \\var{c}\\}$.

\n

$B=\\{x \\in \\mathbb{N}\\;|\\;x \\gt \\var{d}\\}$.

\n

$C=\\{ x \\in \\mathbb{N}\\;|\\; x \\text{ divisible by } \\var{f}\\}$.

\n

\n

", "tags": [], "functions": {"mod_set": {"definition": "//returns all integers which are divisible by c betweeen a and b\nvar l=[];\nfor(var i=a;iEnumerate the following sets:

\n

a) $A \\cap B=\\;$[[0]]

\n

b) $B \\cap C=\\;$[[1]]

\n

c) $A \\cap \\overline{C}=\\;$[[2]]

\n

d) $(\\overline{A} \\cup C) \\cap B=\\;$[[3]]

\n

e) $\\overline{A \\cup C} \\cap \\overline{B}=\\;$[[4]]

\n

f) $(A \\cup \\overline{B}) \\cap C=\\;$[[5]]

\n

\n

Note that you input sets in the form set(a,b,c,..,z) .

\n

For example set(1,2,3)gives the set $\\{1,2,3\\}$.

\n

The empty set is input as set().

\n

Also some labour saving tips:

\n

If you want to input all integers between $a$ and $b$ inclusive then instead of writing all the elements you can input this as set(a..b).

\n

If you want to input all integers between $a$ and $b$ inclusive in steps of $c$ then this is input as set(a..b#c). So all odd integers from $-3$ to $28$ are input as set(-3..28#2).

", "scripts": {}, "gaps": [{"variableReplacements": [], "checkvariablenames": false, "vsetrangepoints": 5, "expectedvariablenames": [], "vsetrange": [0, 1], "marks": 1, "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "answer": "{set1 and set2}", "showCorrectAnswer": true, "checkingtype": "absdiff"}, {"variableReplacements": [], "checkvariablenames": false, "vsetrangepoints": 5, "expectedvariablenames": [], "vsetrange": [0, 1], "marks": 1, "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "answer": "{set2 and set3}", "showCorrectAnswer": true, "checkingtype": "absdiff"}, {"variableReplacements": [], "checkvariablenames": false, "vsetrangepoints": 5, "expectedvariablenames": [], "vsetrange": [0, 1], "marks": 1, "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "answer": "{set1 and (universal-set3)}", "showCorrectAnswer": true, "checkingtype": "absdiff"}, {"variableReplacements": [], "checkvariablenames": false, "vsetrangepoints": 5, "expectedvariablenames": [], "vsetrange": [0, 1], "marks": 1, "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "answer": "{((universal-set1) or set3) and set2}", "showCorrectAnswer": true, "checkingtype": "absdiff"}, {"variableReplacements": [], "checkvariablenames": false, "vsetrangepoints": 5, "expectedvariablenames": [], "vsetrange": [0, 1], "marks": 1, "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "answer": "{(universal-(set1 or set3)) and (universal-set2)}", "showCorrectAnswer": true, "checkingtype": "absdiff"}, {"variableReplacements": [], "checkvariablenames": false, "vsetrangepoints": 5, "expectedvariablenames": [], "vsetrange": [0, 1], "marks": 1, "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "answer": "{(set1 or (universal-set2)) and set3}", "showCorrectAnswer": true, "checkingtype": "absdiff"}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0}], "rulesets": {}, "advice": "", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}