- Practice
- About 30 min
- 15 practice questions
Final self-assessment: Sets, Relations and Functions
Test yourself on the whole course: 15 questions with answers explained.
If something looks wrong, please tell us.
Attempt all 15 questions in one sitting of about 30 minutes, with paper for working. They mix ideas from all five lessons and are a little harder than the lesson checks. Mark your answers first, then read every explanation, including those for questions you got right.
Final self-assessment
-
1. If n(P(A)) = 256, n(P(B)) = 64 and n(A ∪ B) = 11, what is n(A ∩ B)?
- 2
- 3
- 5
- 14
Show answer
Answer: B. 2⁸ = 256 gives n(A) = 8 and 2⁶ = 64 gives n(B) = 6. Then n(A ∩ B) = n(A) + n(B) − n(A ∪ B) = 8 + 6 − 11 = 3.
-
2. If n(A ∩ B) = 4 and n(A ∪ B) = 13, how many elements does P(A∆B) have?
- 512
- 9
- 256
- 8192
Show answer
Answer: A. A∆B = (A ∪ B) − (A ∩ B), so n(A∆B) = 13 − 4 = 9, and its power set has 2⁹ = 512 elements.
-
3. Let A and B be subsets of a universal set U. Which expression equals A′ ∪ (A ∩ B)?
- A ∩ B
- A′ ∩ B
- A′ ∪ B
- U
Show answer
Answer: C. By the distributive law, A′ ∪ (A ∩ B) = (A′ ∪ A) ∩ (A′ ∪ B) = U ∩ (A′ ∪ B) = A′ ∪ B.
-
4. If n(A) = 3 and n(B ∩ C) = 2, what is n((A × B) ∩ (A × C))?
- 5
- 9
- 8
- 6
Show answer
Answer: D. (A × B) ∩ (A × C) = A × (B ∩ C), so its size is n(A) × n(B ∩ C) = 3 × 2 = 6.
-
5. What is the 0.5-neighbourhood of the point 4?
- [3.5, 4.5]
- (3.5, 4.5)
- (3.5, 4) ∪ (4, 4.5)
- (4, 4.5)
Show answer
Answer: B. The ε-neighbourhood of a is the open interval (a − ε, a + ε) = (4 − 0.5, 4 + 0.5) = (3.5, 4.5). Removing 4 gives the deleted neighbourhood (3.5, 4) ∪ (4, 4.5); adding 4 back gives the full neighbourhood.
-
6. If A has 2 elements and B has 3, how many relations are there from A to B?
- 6
- 8
- 32
- 64
Show answer
Answer: D. A × B has 2 × 3 = 6 pairs, and every subset of A × B is a relation, so there are 2⁶ = 64 relations.
-
7. On X = {1, 2, 3, 4}, R = {(1, 1), (2, 2), (3, 3), (4, 4), (1, 3), (3, 1), (1, 4), (4, 1)}. Which statement is true?
- R is an equivalence relation
- R is reflexive and symmetric but not transitive
- R is symmetric but not reflexive
- R is transitive but not symmetric
Show answer
Answer: B. All (a, a) pairs are present (reflexive) and every pair has its reverse (symmetric). But (3, 1) and (1, 4) are in R while (3, 4) is not, so R is not transitive.
-
8. On N, define aRb if a + 2b = 10. How many pairs does R contain?
- 4
- 5
- 3
- 9
Show answer
Answer: A. a = 10 − 2b must be a natural number: b = 1, 2, 3, 4 give a = 8, 6, 4, 2, and b = 5 gives a = 0, not natural. So R = {(8, 1), (6, 2), (4, 3), (2, 4)}: 4 pairs.
-
9. How many reflexive relations are there on a set with 3 elements?
- 8
- 512
- 64
- 27
Show answer
Answer: C. The 3 pairs (a, a) must be included; the other 3² − 3 = 6 pairs are each in or out, so there are 2⁶ = 64 reflexive relations.
-
10. What is the range of f(x) = 1/(3 + 4 sin x)?
- [−1, 1/7]
- (−∞, −1) ∪ (1/7, ∞)
- (−1, 1/7)
- (−∞, −1] ∪ [1/7, ∞)
Show answer
Answer: D. −1 ≤ sin x ≤ 1 gives −4 ≤ 4 sin x ≤ 4, so −1 ≤ 3 + 4 sin x ≤ 7, and the denominator cannot be 0. Values in [−1, 0) give reciprocals ≤ −1, and values in (0, 7] give reciprocals ≥ 1/7. The end values −1 and 1/7 are reached at sin x = −1 and sin x = 1, so the range is (−∞, −1] ∪ [1/7, ∞).
-
11. The rule f(x) = |x| gives a bijection when its domain and co-domain are
- R and R
- [0, ∞) and [0, ∞)
- R and [0, ∞)
- (−∞, 0] and R
Show answer
Answer: B. On [0, ∞), |x| = x, which is one-to-one and takes every value y ≥ 0, so it is a bijection onto [0, ∞). With domain R it is not one-to-one (|−2| = |2|), and with co-domain R it is not onto, since negative numbers have no pre-image.
-
12. If x is a real number that is not an integer, what is ⌊x⌋ + ⌊−x⌋?
- 0
- 1
- −1
- −2
Show answer
Answer: C. Write x = n + t with n an integer and 0 < t < 1. Then ⌊x⌋ = n and −x = −n − t lies strictly between −n − 1 and −n, so ⌊−x⌋ = −n − 1. The sum is −1. For example x = 2.3 gives 2 + (−3) = −1. (For an integer x the sum would be 0.)
-
13. If f(x) = 3x − 1 and g(x) = x², for which value of x is (f∘g)(x) = (g∘f)(x)?
- Only x = 0
- x = 1 only
- x = 1/3 only
- No real x
Show answer
Answer: D. (f∘g)(x) = 3x² − 1 and (g∘f)(x) = (3x − 1)² = 9x² − 6x + 1. Setting them equal: 3x² − 1 = 9x² − 6x + 1 gives 6x² − 6x + 2 = 0, i.e. 3x² − 3x + 1 = 0, whose discriminant is 9 − 12 = −3 < 0. So there is no real solution.
-
14. Which describes f(x) = x³ cos x on R?
- Even
- Odd
- Both odd and even
- Neither odd nor even
Show answer
Answer: B. x³ is odd and cos x is even, because cos(−x) = cos x. Their product is odd: f(−x) = (−x)³ cos(−x) = −x³ cos x = −f(x).
-
15. The graph of y = −f(x − 2) is obtained from y = f(x) by
- shifting 2 units right, then reflecting in the x-axis
- shifting 2 units left, then reflecting in the y-axis
- shifting 2 units right, then reflecting in the y-axis
- shifting 2 units left, then reflecting in the x-axis
Show answer
Answer: A. f(x − 2) moves the graph 2 units right, and the minus sign in front of f negates every y-value, which is a reflection in the x-axis.
Questions 1-3: lesson 1 (power sets, set laws, symmetric difference). Questions 4-5: lesson 2 (Cartesian products, neighbourhoods). Questions 6-9: lesson 3 (relations and their properties). Questions 10-12: lesson 4 (ranges, bijections, step functions). Questions 13-15: lesson 5 (composition, odd and even functions, transformations).
Sign in to keep track of the lessons you finish.