- Practice
- About 30 min
- 15 practice questions
Final self-assessment: 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 rough paper for listing pairs and doing the algebra. The questions mix ideas from all five lessons and are a little harder than the lesson checks. Check your answers only after you finish, and read every explanation.
Final self-assessment
-
1. A × A has 9 elements, and two of them are (3, 5) and (5, 7). What is A?
- {3, 5}
- {3, 5, 7}
- {5, 7}
- {3, 7}
Show answer
Answer: B. n(A × A) = n(A)² = 9, so A has 3 elements. The coordinates of the given pairs show that 3, 5 and 7 are all in A, so A = {3, 5, 7}.
-
2. A = {1, 2}, B = {2, 3, 4} and C = {4, 5}. What is n((A ∪ C) × B)?
- 12
- 6
- 15
- 9
Show answer
Answer: A. A ∪ C = {1, 2, 4, 5} has 4 elements and B has 3, so n((A ∪ C) × B) = 4 × 3 = 12.
-
3. If (x² − 3x, y + 2x) = (4, 1), which gives all possible values of (x, y)?
- (4, 9) or (−1, −1)
- (4, −7) only
- (4, −7) or (−1, 3)
- (−4, 9) or (1, −1)
Show answer
Answer: C. x² − 3x = 4 gives x² − 3x − 4 = 0, (x − 4)(x + 1) = 0, so x = 4 or x = −1. Then y = 1 − 2x: for x = 4, y = −7; for x = −1, y = 3. So (4, −7) or (−1, 3).
-
4. If n(A) = 2 and n(B) = 3, how many non-empty relations are there from A to B?
- 64
- 6
- 9
- 63
Show answer
Answer: D. n(A × B) = 6, so there are 2⁶ = 64 relations. Removing the null relation leaves 64 − 1 = 63 non-empty relations.
-
5. R = {(x, y) | y = x², x ∈ {−2, −1, 0, 1, 2}}. What is the range of R?
- {0, 1, 4}
- {−2, −1, 0, 1, 2}
- {0, 1, 2, 4}
- {1, 4}
Show answer
Answer: A. The squares are 4, 1, 0, 1, 4. Writing each value once, the range is {0, 1, 4}. The set {−2, −1, 0, 1, 2} is the domain.
-
6. A = {1, 2} and B = {3, 4, 5}. Which relation from A to B has domain {1} and range {3, 5}?
- {(1, 3), (2, 5)}
- {(3, 1), (5, 1)}
- {(1, 3), (1, 5)}
- {(1, 3), (1, 4), (1, 5)}
Show answer
Answer: C. {(1, 3), (1, 5)} uses only the first coordinate 1 (domain {1}) and the second coordinates 3 and 5 (range {3, 5}). The first set has domain {1, 2}, the second is not a subset of A × B, and the last has range {3, 4, 5}.
-
7. If f(x) = x² − 2x, what is f(a + 1) − f(a − 1)?
- 4a
- 4a − 4
- 2a − 2
- 0
Show answer
Answer: B. f(a + 1) = (a + 1)² − 2(a + 1) = a² + 2a + 1 − 2a − 2 = a² − 1. f(a − 1) = (a − 1)² − 2(a − 1) = a² − 2a + 1 − 2a + 2 = a² − 4a + 3. Difference: (a² − 1) − (a² − 4a + 3) = 4a − 4.
-
8. What is the domain of f(x) = (x + 1)/(x² − 9)?
- ℝ − {3}
- ℝ − {−1}
- ℝ − {9}
- ℝ − {−3, 3}
Show answer
Answer: D. The denominator x² − 9 = (x − 3)(x + 3) is zero at x = 3 and x = −3, so both must be removed: the domain is ℝ − {−3, 3}. The numerator being zero at −1 does no harm.
-
9. How many functions are there from a set with 3 elements to a set with 4 elements?
- 12
- 81
- 64
- 7
Show answer
Answer: C. Each of the 3 elements of the domain has 4 choices of image, so there are 4 × 4 × 4 = 4³ = 64 functions. (81 = 3⁴ counts functions the other way round.)
-
10. A = {−1, 0, 1, 2} and f : A → B is onto, with f(x) = x² − 1. What is B?
- {−1, 0, 3}
- {0, 1, 3}
- {−1, 0, 1, 3}
- {−2, −1, 0, 3}
Show answer
Answer: A. f(−1) = 0, f(0) = −1, f(1) = 0, f(2) = 3. For an onto function the co-domain equals the range, so B = {−1, 0, 3}. Since f(−1) = f(1), f is also many-one.
-
11. Which function from ℝ to ℝ is a bijection?
- f(x) = x²
- f(x) = |x|
- f(x) = 5
- f(x) = 7 − 2x
Show answer
Answer: D. 7 − 2a = 7 − 2b gives a = b, so f(x) = 7 − 2x is one-one; for any y, x = (7 − y)/2 gives f(x) = y, so it is onto. x² and |x| give the same value for x and −x, and the constant 5 has a one-element range.
-
12. f(x) = x² + 1 for x ≤ 0; f(x) = 3x − 2 for 0 < x < 4; f(x) = 20 − x for x ≥ 4. What is [f(−3) + f(4)] ÷ f(2)?
- 6
- 7
- 13/2
- 26
Show answer
Answer: C. −3 ≤ 0, so f(−3) = 9 + 1 = 10. 4 ≥ 4, so f(4) = 20 − 4 = 16. 2 is in 0 < x < 4, so f(2) = 6 − 2 = 4. Then (10 + 16) ÷ 4 = 26/4 = 13/2.
-
13. f(x) = 2x + 1 and g(x) = x − 3. For which x is g(f(f(x))) = f(g(g(x)))?
- 11/2
- −11
- 3
- −11/2
Show answer
Answer: D. f(f(x)) = 2(2x + 1) + 1 = 4x + 3, so g(f(f(x))) = 4x + 3 − 3 = 4x. g(g(x)) = x − 6, so f(g(g(x))) = 2(x − 6) + 1 = 2x − 11. Then 4x = 2x − 11 gives 2x = −11 and x = −11/2.
-
14. If f(x) = x − 4 and g(x) = x², what is (g∘f)(x) − (f∘g)(x)?
- −8x + 20
- 8x − 20
- −8x + 12
- 0
Show answer
Answer: A. (g∘f)(x) = (x − 4)² = x² − 8x + 16. (f∘g)(x) = x² − 4. Difference: x² − 8x + 16 − x² + 4 = −8x + 20. It is not 0, which shows again that composition is not commutative.
-
15. A linear function f(x) = mx + c satisfies f(1) = 5 and f(3) = 11. What is f(−2)?
- 4
- −4
- −8
- 8
Show answer
Answer: B. m + c = 5 and 3m + c = 11. Subtracting, 2m = 6, so m = 3 and c = 2. Then f(−2) = 3(−2) + 2 = −6 + 2 = −4.
Questions 1-3: lesson 1 (ordered pairs and cartesian product). Questions 4-6: lesson 2 (relations). Questions 7-9: lesson 3 (functions and their representation). Questions 10-12: lesson 4 (types of functions and piecewise functions). Questions 13-15: lesson 5 (composition and standard graphs).
Sign in to keep track of the lessons you finish.