MTH202 – Discrete Mathematics: Midterm Important Subjective (37 Solved Q&As)
Mathematics • Read every solved subjective question with its model answer directly on this page. Free, no login required.
All 664 Midterm Packs · MTH202 Course Page · MTH202 MCQ Pack (240 MCQs)
-
What is a truth table?
Topic: Core Subjective Topics
A truth table is a table that lists all the possible combinations of truth values of the propositions in a compound proposition, together with the resulting truth value of the compound proposition for each combination. A compound proposition involving n distinct propositions has a truth table with 2^n rows.
-
Construct the truth table for (p ∨ q) ∧ ~(p ∧ q).
Topic: Core Subjective Topics
p q p ∨ q p ∧ q ~(p ∧ q) (p ∨ q) ∧ ~(p ∧ q) T T T T F F T F T F T T F T T F T T F F F F T F So (p ∨ q) ∧ ~(p ∧ q) is true exactly when exactly one of p and q is true (this is the exclusive OR, p XOR q).
-
What is meant by a valid argument and an invalid argument?
Topic: Core Subjective Topics
An argument is a list of statements called premises (assumptions, laws, rules or hypotheses) followed by a statement called the conclusion. The argument is valid if the conclusion is true whenever all the premises are true; to test this, the rows of the truth table in which all the premises are true are checked — these are called the critical rows — and the argument is valid if the conclusion is true in every critical row. An argument is invalid if the conclusion is false in at least one case where all the premises are true.
-
Prove, using the laws of logic, that ~(p ∨ (~p ∧ q)) ≡ ~p ∧ ~q.
Topic: Core Subjective Topics • 5 marks marks
First simplify the inner expression: p ∨ (~p ∧ q) ≡ (p ∨ ~p) ∧ (p ∨ q) [Distributive law] ≡ t ∧ (p ∨ q) [Negation law: p ∨ ~p ≡ t] ≡ p ∨ q [Identity law] Therefore ~(p ∨ (~p ∧ q)) ≡ ~(p ∨ q) ≡ ~p ∧ ~q [De Morgan’s law]. Hence proved.
-
Write down the different wordings (notations) used for the conditional statement p → q.
Topic: Core Subjective Topics
The conditional p → q can be stated in many equivalent ways: • If p, then q • p implies q • If p, q • p only if q • p is sufficient for q • q is necessary for p • q follows from p
-
What is a contradiction (absurdity)?
Topic: Core Subjective Topics
A contradiction (also called an absurdity) is a statement (proposition) that is always false, whatever the truth values of its constituent propositions. For example, p ∧ ~p is a contradiction: it is false for every truth value of p.
-
What is the difference between {a, b} and {{a, b}}?
Topic: Core Subjective Topics • 2 marks marks
{a, b} is a set having two elements a and b. On the other hand, {{a, b}} is a set having only one element, namely the set {a, b} itself. In other words, {a, b} is a set of two elements, whereas {{a, b}} is a set of one element which is itself a set.
-
Why is the empty set a subset of every set?
Topic: Core Subjective Topics
Suppose, to the contrary, that the empty set ∅ is not a subset of some set A. For ∅ not to be a subset of A, there must be an element of ∅ that does not belong to A. But ∅ has no elements at all, so there can be no such element. This contradiction shows that ∅ must be a subset of A. Hence the empty set is a subset of every set.
-
What is an improper subset? Give an example.
Topic: Core Subjective Topics
A set A is called an improper subset of a set B if A = B, i.e. if A contains all the elements of B and no others; it is written A ⊆ B. Every set is an improper subset of itself. Example: if A = {1, 2, 3} and B = {1, 2, 3}, then A is an improper subset of B (whereas a proper subset must be strictly smaller, e.g. {1, 2} ⊂ {1, 2, 3}).
-
What is a Venn diagram? Why is it used?
Topic: Core Subjective Topics
A Venn diagram is a pictorial representation of sets in which the universal set is represented by a rectangle and the sets under consideration are represented by circles (regions) drawn inside the rectangle. Venn diagrams are used to visualize set operations such as union, intersection, difference and complement, and to solve counting problems involving overlapping sets.
-
In a survey of 120 students it was found that 65 read Daily News, 45 read Jung and 42 read Sun. Also 20 read both Daily News and Jung, 25 read both Daily News and Sun, 15 read both Jung and Sun, and 8 read all three newspapers. (a) How many read at least one newspaper? (b) How many read none of the newspapers?
Topic: Core Subjective Topics • 10 marks marks
Let D, J and S denote the sets of students reading Daily News, Jung and Sun respectively. By the inclusion–exclusion principle: n(D ∪ J ∪ S) = n(D) + n(J) + n(S) − n(D ∩ J) − n(D ∩ S) − n(J ∩ S) + n(D ∩ J ∩ S) = 65 + 45 + 42 − 20 − 25 − 15 + 8 = 100. (a) 100 students read at least one newspaper. (b) Students reading none = 120 − 100 = 20. (Region-wise: all three = 8; D ∩ J only = 20 − 8 = 12; D ∩ S only = 25 − 8 = 17; J ∩ S only = 15 − 8 = 7; D only = 65 − 12 − 17 − 8 = 28; J only = 45 − 12 − 7 − 8 = 18; S only = 42 − 17 − 7 − 8 = 10. Total = 28 + 18 + 10 + 12 + 17 + 7 + 8 = 100.)
-
Find the power set of A = {x, y}.
Topic: Core Subjective Topics
The subsets of A are: ∅, {x}, {y} and {x, y}. Hence the power set is P(A) = {∅, {x}, {y}, {x, y}}, which has 2^2 = 4 elements.
-
Define a binary relation. Also define reflexive, symmetric and transitive relations.
Topic: Core Subjective Topics
A binary relation R from a set A to a set B is a subset of the Cartesian product A × B; if (a, b) ∈ R we write aRb. A relation R on a set A is called: • Reflexive, if (a, a) ∈ R for every a ∈ A. • Symmetric, if (a, b) ∈ R implies (b, a) ∈ R for all a, b ∈ A. • Transitive, if (a, b) ∈ R and (b, c) ∈ R together imply (a, c) ∈ R for all a, b, c ∈ A.
-
Define the composite of two relations, with an example.
Topic: Core Subjective Topics
Let R be a relation from A to B and S a relation from B to C. The composite relation S∘R is the relation from A to C defined by: (a, c) ∈ S∘R if and only if there exists b ∈ B such that (a, b) ∈ R and (b, c) ∈ S. Example: Let R = {(1, x), (2, y), (3, y)} and S = {(x, p), (y, q)}. Then S∘R = {(1, p), (2, q), (3, q)}.
-
Find the domain and range of the relation R = {(2, 3), (6, 5), (5, 4)}.
Topic: Core Subjective Topics
The domain of R is the set of all first elements of the ordered pairs: Dom(R) = {2, 6, 5}. The range of R is the set of all second elements of the ordered pairs: Ran(R) = {3, 5, 4}.
-
Let A = {0, 1, 2, 3} and R = {(0, 0), (0, 2), (0, 3), (1, 0), (1, 1), (2, 2), (3, 0), (3, 3)} be a relation on A. Check whether R is reflexive, symmetric and transitive.
Topic: Core Subjective Topics
Reflexive: Yes. (0, 0), (1, 1), (2, 2) and (3, 3) all belong to R, so every element of A is related to itself. Symmetric: No. (0, 2) ∈ R but (2, 0) ∉ R, so R is not symmetric. Transitive: No. (1, 0) ∈ R and (0, 2) ∈ R, but (1, 2) ∉ R, so R is not transitive.
-
Prove that if R and S are reflexive relations on a set A, then R ∩ S is also reflexive.
Topic: Core Subjective Topics • 3 marks marks
Since R and S are reflexive on A, for every a ∈ A we have (a, a) ∈ R and (a, a) ∈ S. Hence (a, a) ∈ R ∩ S for every a ∈ A, by the definition of intersection. Therefore R ∩ S is reflexive on A. Hence proved.
-
Prove that if R is a transitive relation, then R^-1 (the inverse relation) is also transitive.
Topic: Core Subjective Topics • 5 marks marks
Suppose (a, b) ∈ R^-1 and (b, c) ∈ R^-1. By the definition of the inverse relation, (b, a) ∈ R and (c, b) ∈ R. Since R is transitive, (c, b) ∈ R and (b, a) ∈ R imply (c, a) ∈ R. Hence (a, c) ∈ R^-1. Thus whenever (a, b) and (b, c) belong to R^-1, so does (a, c); therefore R^-1 is transitive. Hence proved.
-
Show that the null relation ∅ on a set A is symmetric and transitive. Is it reflexive?
Topic: Core Subjective Topics
Symmetric: The implication “if (a, b) ∈ ∅ then (b, a) ∈ ∅” is vacuously true, because the hypothesis (a, b) ∈ ∅ is never true (the null relation contains no ordered pairs). Hence ∅ is symmetric. Transitive: Similarly, the implication “if (a, b) ∈ ∅ and (b, c) ∈ ∅ then (a, c) ∈ ∅” is vacuously true, so ∅ is transitive. Reflexive: No (unless A is empty), because (a, a) ∉ ∅ for a ∈ A.
-
Let A = {1, 2, 3, 4}, B = {x, y, z} and R = {(1, y), (1, z), (3, y), (4, x), (4, z)} be a relation from A to B. Write down the matrix of R.
Topic: Core Subjective Topics
Writing 1 when the pair belongs to R and 0 otherwise, with rows for 1, 2, 3, 4 and columns for x, y, z: x y z 1 0 1 1 2 0 0 0 3 0 1 0 4 1 0 1
-
What is a function? State the conditions for a relation to be a function.
Topic: Core Subjective Topics
A function f from a set X to a set Y is a relation from X to Y that satisfies the following two conditions: 1. For every element x ∈ X there exists an element y ∈ Y such that (x, y) ∈ f (every input has an image). 2. If (x, y) ∈ f and (x, z) ∈ f, then y = z (each input has exactly one image; the first element of the ordered pairs does not repeat with different second elements).
-
Write the definitions of one-to-one, onto, into and bijective functions.
Topic: Core Subjective Topics
• One-to-one (injective) function: a function f: X → Y is one-to-one if different inputs give different outputs, i.e. f(x1) = f(x2) implies x1 = x2; equivalently, the second elements of the ordered pairs of f are all distinct. • Onto (surjective) function: f: X → Y is onto if every element of Y is the image of some element of X, i.e. the range of f equals the co-domain Y. • Into function: f: X → Y is into if it is not onto, i.e. there is at least one element of Y which is not the image of any element of X (the range is a proper subset of the co-domain). • Bijective function: a function that is both one-to-one and onto.
-
Define the domain and co-domain of a function.
Topic: Core Subjective Topics
Let f be a function from a set X to a set Y. The set X, consisting of all the input values of f, is called the domain of f. The set Y, in which all the output values of f lie, is called the co-domain of f. (The set of outputs actually obtained is called the range of f, and it is always a subset of the co-domain.)
-
Let f(x) = 2x + 3 and g(x) = 3x + 2. Find (f∘g)(x) and (g∘f)(x).
Topic: Core Subjective Topics • 5 marks marks
(f∘g)(x) = f(g(x)) = f(3x + 2) = 2(3x + 2) + 3 = 6x + 4 + 3 = 6x + 7. (g∘f)(x) = g(f(x)) = g(2x + 3) = 3(2x + 3) + 2 = 6x + 9 + 2 = 6x + 11. Note that (f∘g)(x) ≠ (g∘f)(x), so the composition of functions is not commutative.
-
Let f(x) = x^2 + 1 and g(x) = x + 2. Find (f·g)(x) and (f − g)(x).
Topic: Core Subjective Topics • 5 marks marks
(f·g)(x) = f(x)·g(x) = (x^2 + 1)(x + 2) = x^3 + 2x^2 + x + 2. (f − g)(x) = f(x) − g(x) = (x^2 + 1) − (x + 2) = x^2 − x − 1.
-
Let f(x) = 2x + 1 and g(x) = x^2 − 1. Find (f∘g)(x) and (g∘f)(x).
Topic: Core Subjective Topics
(f∘g)(x) = f(g(x)) = f(x^2 − 1) = 2(x^2 − 1) + 1 = 2x^2 − 1. (g∘f)(x) = g(f(x)) = g(2x + 1) = (2x + 1)^2 − 1 = 4x^2 + 4x + 1 − 1 = 4x^2 + 4x.
-
Let f(x) = 5x + 1. Find the inverse function f^-1(x).
Topic: Core Subjective Topics • 5 marks marks
Let y = f(x) = 5x + 1. Interchanging x and y gives x = 5y + 1. Solving for y: 5y = x − 1, so y = (x − 1)/5. Hence f^-1(x) = (x − 1)/5. (Check: f(f^-1(x)) = 5·(x − 1)/5 + 1 = x − 1 + 1 = x.)
-
Show that the function f: R → R defined by f(x) = x^3 is bijective.
Topic: Core Subjective Topics • 10 marks marks
One-to-one: Suppose f(a) = f(b) for a, b ∈ R. Then a^3 = b^3, which gives a = b (taking cube roots). Hence f is one-to-one (injective). Onto: Let y be any real number. Choose x = cube root of y, which is a real number. Then f(x) = (cube root of y)^3 = y. Hence every real number y has a pre-image, so f is onto (surjective). Since f is both one-to-one and onto, f is bijective. Hence proved.
-
Does the rule f(n) = √n, where n is an integer, define a function from Z into R? Justify your answer.
Topic: Core Subjective Topics • 3 marks marks
No. For negative integers n (for example n = −4), √n is not a real number, so f(n) is not defined as a real value for every integer n. Since a function must assign an output in the co-domain to every element of the domain, this rule does not define a function from Z into R. (It does define a function if the domain is restricted to the non-negative integers.)
-
Differentiate between a sequence and a series.
Topic: Core Subjective Topics
A sequence is an ordered list of numbers (terms) a_1, a_2, a_3, …; formally it is a function whose domain is the set of natural numbers. A series is the sum of the terms of a sequence, i.e. an expression of the form a_1 + a_2 + a_3 + … . For example, 2, 4, 6, 8, … is a sequence, while 2 + 4 + 6 + 8 + … is a series.
-
How many terms are there in the arithmetic series −9, −6, −3, …, 66? Also write down the general term.
Topic: Core Subjective Topics
Here a = −9 and the common difference d = −6 − (−9) = 3. Let 66 be the nth term. Using a_n = a + (n − 1)d: 66 = −9 + (n − 1)(3) 75 = 3(n − 1), so n − 1 = 25 and n = 26. Hence there are 26 terms. The general term is a_n = −9 + (n − 1)(3) = 3n − 12.
-
The 5th term of an arithmetic sequence is −16 and the 20th term is −46. Find the 10th term.
Topic: Core Subjective Topics
Let a be the first term and d the common difference. Then: a + 4d = −16 … (i) a + 19d = −46 … (ii) Subtracting (i) from (ii): 15d = −30, so d = −2. Substituting in (i): a = −16 − 4(−2) = −8. The 10th term is a_10 = a + 9d = −8 + 9(−2) = −8 − 18 = −26.
-
Find the 5th term of the geometric sequence 3, 6, 12, …
Topic: Core Subjective Topics • 3 marks marks
Here a = 3 and the common ratio r = 6/3 = 2. The nth term of a geometric sequence is a_n = a·r^(n−1), so a_5 = 3 × 2^(5−1) = 3 × 16 = 48.
-
Find the 7th term of the geometric sequence 4, 12, 36, 108, …
Topic: Core Subjective Topics
Here a = 4 and the common ratio r = 12/4 = 3. Hence a_7 = a·r^(7−1) = 4 × 3^6 = 4 × 729 = 2916.
-
Write the geometric sequence with positive terms whose 2nd term is 9 and whose 4th term is 1.
Topic: Core Subjective Topics • 5 marks marks
Let a be the first term and r the common ratio. Then a·r = 9 and a·r^3 = 1. Dividing: r^2 = 1/9, so r = 1/3 (positive terms). Then a = 9/r = 9 × 3 = 27. Hence the sequence is 27, 9, 3, 1, 1/3, 1/9, …
-
Find the sum of the infinite geometric series 2, √2, 1, …
Topic: Core Subjective Topics • 3 marks marks
Here a = 2 and the common ratio r = √2/2 = 1/√2, with |r| < 1, so the sum to infinity exists: S = a/(1 − r) = 2/(1 − 1/√2) = 2√2/(√2 − 1). Rationalizing: S = 2√2(√2 + 1)/((√2 − 1)(√2 + 1)) = 2√2(√2 + 1)/1 = 4 + 2√2.
-
Define recursion. A function f is defined recursively by f(0) = −1 and f(n + 1) = f(n) + 3 for n ≥ 0. Find f(1), f(2) and f(3).
Topic: Core Subjective Topics
A recursive definition of a function defines the value of the function at an integer in terms of its values at smaller integers; it consists of initial condition(s), which give the value(s) at the starting point(s), and a recurrence relation, which gives each later value in terms of earlier ones. Here f(0) = −1, so: f(1) = f(0) + 3 = −1 + 3 = 2. f(2) = f(1) + 3 = 2 + 3 = 5. f(3) = f(2) + 3 = 5 + 3 = 8.