Chapter test: Relations and Functions
30 questions ¡ Solve each question on paper first, then open "Show answer" to check your working.
Q1 ¡ Numerical
If A = {1, 2} and B = {3, 4, 5}, find n(A Ã B).Show answer
6 â n(A à B) = n(A) ¡ n(B) = 2 à 3
Q2 ¡ Numerical
If (x + 1, y â 2) = (3, 1), find x + y.Show answer
5 â Componentwise equality: x + 1 = 3 gives x = 2; y â 2 = 1 gives y = 3
Q3 ¡ Numerical
If n(A) = 4 and n(B) = 3, find n(A Ã B) + n(B Ã A).Show answer
24 â 12 + 12 â the counts agree even though the two products are different sets
Q4 ¡ Numerical
If n(A) = 3 and n(B) = 2, find the number of relations from A to B.Show answer
64 â A Ã B has 3 Ã 2 = 6 pairs; every subset is a relation, giving 2âļ = 64
Q5 ¡ Numerical
Find the number of functions from a 3-element set to a 2-element set.Show answer
8 â Each of 3 inputs independently chooses one of 2 images: 2Âŗ = 8
Q6 ¡ Numerical
Let f(x) = x² with domain {â2, â1, 0, 1, 2, 3}. Find n(range of f).Show answer
4 â Images 4, 1, 0, 1, 4, 9 collapse to the set {0, 1, 4, 9}
Q7 ¡ Numerical
Two dice are thrown together. Treating the outcome as an ordered pair (first die, second die), how many outcomes are possible?Show answer
36 â Ordered outcomes form {1, âĻ, 6} à {1, âĻ, 6}, so 6 à 6 = 36
Q8 ¡ Numerical
If n(A) = 2 and n(B) = 6, find (number of relations from A to B) â (number of functions from A to B).Show answer
4060 â Relations: 2š² = 4096; functions: 6² = 36; difference 4096 â 36
Q9 ¡ MCQ
If A Ã B = {(1, 3), (1, 4), (2, 3), (2, 4)}, then:- A = {1, 2}, B = {3, 4}
- A = {3, 4}, B = {1, 2}
- A = {1, 3}, B = {2, 4}
- A = {1}, B = {3, 4}
Show answer
(A) A = {1, 2}, B = {3, 4} â First components give A = {1, 2}; second components give B = {3, 4}
Q10 ¡ MCQ
Which statement is true for all sets A, B, C?- A Ã B = B Ã A
- A à (B ⊠C) = (A à B) ⊠(A à C)
- A à (B âĒ C) = (A à B) ⊠(A à C)
- A Ã â = {(a, â ) : a â A}
Show answer
(B) A à (B ⊠C) = (A à B) ⊠(A à C) â The product distributes over intersection; (A) needs A = B, (C) misstates the law, (D) is ill-formed
Q11 ¡ MCQ
The domain of the relation R = {(1, 3), (2, 5), (4, 7)} is:- {3, 5, 7}
- {1, 2, 4}
- {1, 2, 3, 4, 5, 7}
- {1, 3}
Show answer
(B) {1, 2, 4} â Domain collects first components: 1, 2, 4 â option (A) is the range
Q12 ¡ MCQ
The range of the relation R = {(a, 1), (b, 3), (c, 1), (d, 5)} is:- {1, 3, 5}
- {a, b, c, d}
- {1, 1, 3, 5}
- {1, 3, 5, 7}
Show answer
(A) {1, 3, 5} â Range collects second components, deduplicated: {1, 3, 5}
Q13 ¡ MCQ
Which relation from A = {1, 2, 3} to A is a function?- {(1, 1), (1, 2), (2, 3), (3, 3)}
- {(1, 2), (2, 3)}
- {(1, 3), (2, 3), (3, 1)}
- {(1, 2), (2, 1), (3, 2), (2, 3)}
Show answer
(C) {(1, 3), (2, 3), (3, 1)} â Every input used exactly once; (A) and (D) double an input, (B) leaves 3 unused
Q14 ¡ MCQ
The number of functions from a 2-element set to a 4-element set is:- 8
- 16
- 4
- 24
Show answer
(B) 16 â n(B)n(A) = 4² = 16
Q15 ¡ MCQ
The domain of f(x) = 1/(x â 5) is:- R
- R â {5}
- R â {â5}
- [5, â)
Show answer
(B) R â {5} â Denominator zero at x = 5 only; R with that point removed
Q16 ¡ MCQ
The domain of f(x) = â(x â 2) is:- R
- (2, â)
- [2, â)
- (ââ, 2]
Show answer
(C) [2, â) â x â 2 âĨ 0 gives x âĨ 2; the endpoint 2 itself is legal, so the bracket is closed
Q17 ¡ MCQ
Let f = {(1, 2), (2, 6), (3, 4)} be a function from A = {1, 2, 3} to B = {2, 4, 6, 8}. The range of f is:- {2, 4, 6, 8}
- {2, 4, 6}
- {1, 2, 3}
- {8}
Show answer
(B) {2, 4, 6} â Range is the set of images attained {2, 4, 6}; 8 is in the codomain but never hit
Q18 ¡ MCQ
If f(x) = x² with domain {â2, â1, 0, 1, 2}, then the range of f is:- {0, 1, 4}
- {4, 1, 0, 1, 4}
- {â4, â1, 0, 1, 4}
- {0, 1, 4, 9}
Show answer
(A) {0, 1, 4} â {4, 1, 0, 1, 4} = {0, 1, 4}: signs collapse and repeats merge; 9 is absent since 3 â domain
Q19 ¡ Proof
For any sets A, B and C, show that A à (B âĒ C) = (A à B) âĒ (A à C).Show answer
Proof â Chase one ordered pair through the definitions of product and union â model answer below
Let (a, b) â A à (B âĒ C). Then a â A and b â B âĒ C, so b â B or b â C. In the first case (a, b) â A à B; in the second, (a, b) â A à C. Either way (a, b) â (A à B) âĒ (A à C), proving A à (B âĒ C) â (A à B) âĒ (A à C). Conversely, if (a, b) â (A à B) âĒ (A à C), then (a, b) lies in A à B or A à C; in both cases a â A and b belongs to B or C, that is b â B âĒ C, so (a, b) â A à (B âĒ C). Both inclusions hold, hence A à (B âĒ C) = (A à B) âĒ (A à C). â (This is the distributive law verified concretely on the Cartesian product page.)Q20 ¡ Proof
For non-empty sets A and B, show that if A Ã B = B Ã A, then A = B.Show answer
Proof â Slot-swap argument using non-emptiness â model answer below
Assume A à B = B à A with A â â and B â â . First, A â B: take any a â A; since B is non-empty, pick some b â B. Then (a, b) â A à B, and by the equality of products (a, b) â B à A. But membership in B à A means the first component is in B and the second in A, so a â B. As a was arbitrary, A â B. Second, B â A: take any b â B and pick a â A (which exists since A â â ). Then (b, a) â B à A = A à B, so b â A. Hence B â A. Both containments give A = B. â (Note where non-emptiness is used: if A = â and B â â , then A à B = â = B à A, so the hypothesis holds while A â B; the non-empty hypothesis is exactly what blocks this edge case.)P1 ¡ ordered-pair equality
If (2a â 1, b + 3) = (5, 4), then a + b equals:- 3
- 4
- 5
- 1
Show answer
(B) 4 â componentwise equality gives 2a â 1 = 5 â a = 3 and b + 3 = 4 â b = 1, so a + b = 4.
P2 ¡ product of word-letter sets
If A is the set of letters of RAT and B is the set of letters of TAR, then n(A Ã B) equals:- 3
- 6
- 9
- 27
Show answer
(C) 9 â both words reduce to {R, A, T}, so n(A) = n(B) = 3 and n(A Ã B) = 9.
P3 ¡ relations on a small set
The number of relations on a set with 2 elements is:- 4
- 8
- 16
- 32
Show answer
(C) 16 â a relation on A is a subset of A Ã A with 4 pairs, giving 2â´ = 16 relations.
P4 ¡ rational-function domain
The domain of f(x) = (x + 1)/(x² â 9) is:- R
- R â {3}
- R â {â3, 3}
- R â {â1}
Show answer
(C) R â {â3, 3} â the denominator vanishes at x = Âą3; both zeros are banned, and the numerator’s zero at â1 is perfectly legal.
P5 ¡ function identification from a roster
Which relation from A = {1, 2, 3} to B = {2, 4, 6} is a function?- {(1, 2), (2, 4)}
- {(1, 2), (2, 4), (3, 6), (3, 2)}
- {(1, 2), (2, 4), (3, 4)}
- {(1, 2), (1, 4), (2, 6)}
Show answer
(C) {(1, 2), (2, 4), (3, 4)} â every element of A is used exactly once; sharing the image 4 between inputs 2 and 3 is legal. (A) has a gap, (B) and (D) have doubles.
P6 ¡ range of the modulus function
If f(x) = |x| with domain {â3, â1, 0, 2}, then the range of f is:- {â3, â1, 0, 2}
- {0, 1, 2, 3}
- {0, 1, 2}
- {â3, â2, â1, 0, 1, 2}
Show answer
(B) {0, 1, 2, 3} â |â3| = 3, |â1| = 1, |0| = 0, |2| = 2; the modulus erases signs, so the range is {0, 1, 2, 3}.
P7 ¡ constrained function counting
The number of functions f from {1, 2} to {a, b, c} with f(1) = a is:- 2
- 3
- 6
- 9
Show answer
(B) 3 â the image of 1 is fixed; only f(2) remains free with 3 choices.
P8 ¡ set-builder sets inside a product
If A = {x : x â N, x is odd, x < 6} and B = {x : x â N, x² = 4}, then A à B equals:- {(1, 2), (3, 2), (5, 2)}
- {(2, 1), (2, 3), (2, 5)}
- {(1, 2), (2, 3), (2, 5)}
- â
Show answer
(A) {(1, 2), (3, 2), (5, 2)} â A = {1, 3, 5} and B = {2} (â2 is not natural); each odd number pairs with 2 in the first slot.
P9 ¡ equality of functions
Let f(x) = x and g(x) = â(x²) on R. Then:- f and g are the same function
- f and g differ for every negative x
- f and g are the same function because â(x²) = x always
- neither function has domain R
Show answer
(B) f and g differ for every negative x â â(x²) = |x|, which equals x for x âĨ 0 but âx for x < 0; same domain, different rule on negatives, so not equal.
P10 ¡ counting ordered outcomes
Two fair dice are thrown. The number of ordered pairs (first die, second die) whose sum is 8 is:- 4
- 5
- 6
- 36
Show answer
(B) 5 â (2, 6), (3, 5), (4, 4), (5, 3), (6, 2): five ordered outcomes from the 36-pair sample space.
Saved on this device only â no account, no sign-in.