Error
There was an error loading the page.
Given some random finite subsets of the natural numbers, perform set operations ∩,∪ and complement.
Metadata
-
England schools
-
England university
-
Scotland schools
Taxonomy: mathcentre
Taxonomy: Kind of activity
Taxonomy: Context
Contributors
History
Blathnaid Sheridan 6 years, 5 months ago
Created this as a copy of Union, complement, intersection.There are 20 other versions that do you not have access to.
Name | Type | Generated Value |
---|
a | integer |
28
|
||||
b | integer |
5
|
||||
c | integer |
20
|
||||
d | integer |
8
|
||||
f | integer |
2
|
||||
universal | set |
Set of 28 items
|
||||
set1 | set |
Set of 16 items
|
||||
set2 | set |
Set of 20 items
|
||||
set3 | set |
Set of 14 items
|
Generated value: integer
- c
- set2
- set3
- universal
This variable doesn't seem to be used anywhere.
Gap-fill
Ask the student a question, and give any hints about how they should answer this part.
Enumerate the following sets:
a) A∩B=
d) (¯A∪C)∩B=
Note that you input sets in the form set(a,b,c,..,z)
.
For example set(1,2,3)
gives the set {1,2,3}.
The empty set is input as set()
.
Also some labour saving tips:
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)
.
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).
Use this tab to check that this question works as expected.
Part | Test | Passed? |
---|---|---|
Gap-fill | ||
Hasn't run yet | ||
Mathematical expression | ||
Hasn't run yet | ||
Mathematical expression | ||
Hasn't run yet |
This question is used in the following exams:
- CMPU1018 Exam (2020) by Blathnaid Sheridan in Blathnaid's workspace.
- CMPU1018 Assessment (2020-2021) by Blathnaid Sheridan in Blathnaid's workspace.
- CMPU CA (2021-2022) by Blathnaid Sheridan in Blathnaid's workspace.
- CMPU1018 CA (2022-2023) by Blathnaid Sheridan in Blathnaid's workspace.
- CMPU1018-Sets & Functions by Blathnaid Sheridan in Blathnaid's workspace.
- CMPU1018_CA2 by Blathnaid Sheridan in Blathnaid's workspace.
- CMPU1018_CA_2024_2025 by Blathnaid Sheridan in Blathnaid's workspace.