Discrete Mathematics: Logic and Proofs
- 50Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the central purpose of representing everyday declarative statements in mathematical logic?
What is the central purpose of representing everyday declarative statements in mathematical logic?
50 questions
- 1
What is the central purpose of representing everyday declarative statements in mathematical logic?
- A
To ensure that every statement is true regardless of context
- B
To replace all ordinary language with programming code
- C
To express statements in a precise form that can be analyzed mathematically
- D
To convert every statement into a numerical equation
Correct answer
CTo express statements in a precise form that can be analyzed mathematically
Explanation
Logic provides a mathematical way to represent and analyze statements encountered in everyday life.
- A
- 2
Why is logic useful when designing digital electronic systems such as computer circuits?
- A
It provides mathematical representations that help describe and design circuits
- B
It guarantees that circuits will not require physical components
- C
It replaces the need to decide what a circuit should do
- D
It turns every circuit operation into a written proof
Correct answer
AIt provides mathematical representations that help describe and design circuits
Explanation
Mathematical representations of logic are useful in designing digital electronics, including computer circuits.
- A
- 3
How can logic help when reasoning about a computer program?
- A
It determines the names of all variables automatically
- B
It converts every loop into a declarative English sentence
- C
It helps express and analyze program behavior, including choices about iteration
- D
It guarantees that a program will run without errors
Correct answer
CIt helps express and analyze program behavior, including choices about iteration
Explanation
Logic can provide a precise way to reason about program behavior and the computational choices involved in writing programs.
- A
- 4
How can logic support a mathematical or computational proof?
- A
It helps organize statements used to establish a conclusion, such as an algorithm's correctness
- B
It makes a conclusion true simply by writing it as a formula
- C
It removes the need for premises when proving a claim
- D
It restricts proofs to statements about electronic circuits
Correct answer
AIt helps organize statements used to establish a conclusion, such as an algorithm's correctness
Explanation
Logical representations and reasoning help establish claims, including claims about graphs, problems, and algorithm correctness.
- A
- 5
Which description best distinguishes propositional logic from predicate logic in the lesson?
- A
Propositional logic is used only for circuits, while predicate logic is used only for proofs
- B
Propositional logic represents declarative statements, while predicate logic can represent statements involving variables
- C
Propositional logic uses variables, while predicate logic can contain only fixed names
- D
Propositional logic has quantifiers, while predicate logic has no variables
Correct answer
BPropositional logic represents declarative statements, while predicate logic can represent statements involving variables
Explanation
Propositional logic represents declarative statements, while predicate logic extends the representation to expressions involving variables.
- A
- 6
What is a proposition in propositional logic?
- A
A rule that combines statements without assigning them truth values
- B
A variable that has no possible truth value
- C
A declarative statement that has a truth value, either true or false
- D
A question that must be answered with a number
Correct answer
CA declarative statement that has a truth value, either true or false
Explanation
The lesson treats declarative statements as either true or false and represents them using propositional variables.
- A
- 7
When is the conjunction p∧q true?
- A
When p is true and q is false
- B
When at least one of p and q is true
- C
When p and q have different truth values
- D
When both p and q are true
Correct answer
DWhen both p and q are true
Explanation
A conjunction asserts that both component statements hold, so it is true only when both are true.
- A
- 8
How is the disjunction p∨q interpreted in the lesson?
- A
It is true only when both p and q are false
- B
It is true only when exactly one of p and q is true
- C
It is true when at least one of p and q is true, including when both are true
- D
It is true only when both p and q are true
Correct answer
CIt is true when at least one of p and q is true, including when both are true
Explanation
The lesson uses inclusive 'or': either statement may be true, and both may also be true.
- A
- 9
If p is true, what is the truth value of its negation ¬p?
- A
It depends on the truth value of another proposition
- B
True
- C
False
- D
It has no truth value until combined with a second proposition
Correct answer
CFalse
Explanation
Negation reverses a proposition's truth value: when p is true, ¬p is false.
- A
- 10
Why is negation described as a unary operator?
- A
It combines exactly two propositions
- B
It operates on one proposition
- C
It can only be used with a quantified predicate
- D
It requires three propositions
Correct answer
BIt operates on one proposition
Explanation
Negation applies to one proposition, unlike binary operators such as conjunction and disjunction.
- A
- 11
When is the implication p→q false?
- A
When both p and q are true
- B
When both p and q are false
- C
When p is false and q is true
- D
When p is true and q is false
Correct answer
DWhen p is true and q is false
Explanation
An implication fails only when its antecedent p is true but its consequent q is false.
- A
- 12
What does the implication p→q assert about the case where p is false?
- A
It requires q to be true
- B
It makes the implication false
- C
It places no restriction on whether q is true or false
- D
It requires q to be false
Correct answer
CIt places no restriction on whether q is true or false
Explanation
The lesson states that if p is false, the truth value of q does not affect whether p→q is true.
- A
- 13
When is the equivalence p↔q true?
- A
When p is true and q is false
- B
Only when both p and q are false
- C
When at least one of p and q is true
- D
When p and q have the same truth value
Correct answer
DWhen p and q have the same truth value
Explanation
An equivalence is true when the two statements agree: both true or both false.
- A
- 14
How many rows are required in a truth table for three independent propositions?
- A
Three rows
- B
Nine rows
- C
Eight rows
- D
Six rows
Correct answer
CEight rows
Explanation
Each proposition has two possible truth values, so three propositions have 23=8 combinations.
- A
- 15
What does it mean for a compound statement to be a tautology?
- A
It is false for every possible assignment of truth values to its propositions
- B
Its truth value cannot be determined from its components
- C
It is true only when all its propositions are false
- D
It is true for every possible assignment of truth values to its propositions
Correct answer
DIt is true for every possible assignment of truth values to its propositions
Explanation
A tautology has only true entries in its final truth-table column.
- A
- 16
What does it mean for a compound statement to be a contradiction?
- A
Its truth value changes whenever the order of propositions changes
- B
It is true whenever at least one proposition is true
- C
It is false for every possible assignment of truth values to its propositions
- D
It is true for every possible assignment of truth values to its propositions
Correct answer
CIt is false for every possible assignment of truth values to its propositions
Explanation
A contradiction has only false entries in its final truth-table column.
- A
- 17
Which equality illustrates the commutative property of disjunction discussed in the lesson?
- A
p∨q=p→q
- B
p∨q=¬p∨q
- C
p∨q=q∨p
- D
p∨q=p∧q
Correct answer
Cp∨q=q∨p
Explanation
The lesson identifies p∨q and q∨p as equivalent expressions under the commutative property.
- A
- 18
Which compound statement expresses that p and q are equivalent by requiring each to imply the other?
- A
(p→q)∧(q→p)
- B
p∨q
- C
p∧¬q
- D
(p→q)∨(q→p)
Correct answer
A(p→q)∧(q→p)
Explanation
The equivalence holds when both implications hold: p→q and q→p.
- A
- 19
When evaluating a compound logical statement with nested operators, what should a truth-table solution do?
- A
Evaluate component expressions and use their truth values to calculate larger expressions
- B
Assign the final truth value before evaluating any components
- C
Use only the truth values of the first two propositions
- D
Ignore operator precedence and choose values based on the English wording
Correct answer
AEvaluate component expressions and use their truth values to calculate larger expressions
Explanation
For a nested expression, calculate the component columns and then use them to evaluate the larger compound statement.
- A
- 20
What is a predicate such as P(x) before a value is assigned to x?
- A
A truth-table row containing two fixed truth values
- B
A logical operator that connects two propositions
- C
A proposition that is already true for every possible value of x
- D
An expression involving a variable whose truth value depends on the variable's value
Correct answer
DAn expression involving a variable whose truth value depends on the variable's value
Explanation
A predicate contains a variable; substituting a particular value allows its truth to be evaluated.
- A
- 21
What happens when a particular value is substituted into a one-variable predicate such as P(x)?
- A
It becomes a quantifier over the whole universe
- B
It automatically becomes a tautology
- C
It remains an unevaluated variable in every case
- D
It becomes a declarative proposition that can be true or false
Correct answer
DIt becomes a declarative proposition that can be true or false
Explanation
For example, substituting a name into a predicate meaning 'x is a student' produces a complete declarative statement.
- A
- 22
How can a predicate represent a relationship involving two variables?
- A
It can contain both variables, whose values are supplied to evaluate the relationship
- B
It must be split into two unrelated propositions before values are supplied
- C
It can contain only one variable, with the other represented by a quantifier
- D
It is true only when both variables have the same value
Correct answer
AIt can contain both variables, whose values are supplied to evaluate the relationship
Explanation
The lesson gives predicates such as Q(x,y), where values for both variables are substituted to test the stated relationship.
- A
- 23
Why does predicate logic require a universe or domain for its variables?
- A
The domain determines which logical operators can be used
- B
The domain assigns the same truth value to every predicate
- C
The domain replaces the need to specify a predicate
- D
The domain specifies which values may be considered for those variables
Correct answer
DThe domain specifies which values may be considered for those variables
Explanation
Quantified variables range over a universe, which must be appropriate to the predicate being considered.
- A
- 24
If a predicate says 'x is a student,' why would the set of integers be an inappropriate domain in the lesson's example?
- A
Integer values do not represent the intended objects being classified as students
- B
The set of integers has too many elements for a predicate
- C
A predicate about students cannot contain a variable
- D
The set of integers makes every statement false
Correct answer
AInteger values do not represent the intended objects being classified as students
Explanation
The domain should contain suitable objects for the predicate; the lesson notes that integers are not a sensible universe for identifying students.
- A
- 25
In an expression containing quantified variables, what does the domain or scope of a variable specify?
- A
Which variable must be substituted first
- B
Which part of the predicate that variable's quantifier governs
- C
Which truth value the entire expression must have
- D
Which operators are allowed in the expression
Correct answer
BWhich part of the predicate that variable's quantifier governs
Explanation
A quantifier governs a particular part of an expression; its scope identifies the portion in which its variable is bound.
- A
- 26
What does ∀xP(x) assert?
- A
P(x) is false for every value of x in the domain
- B
P(x) is true for every value of x in the stated domain
- C
P(x) is true only when x is a named individual
- D
P(x) is true for at least one value of x in the domain
Correct answer
BP(x) is true for every value of x in the stated domain
Explanation
The universal quantifier means that the predicate holds for every value in the domain.
- A
- 27
What does ∃xP(x) assert?
- A
Exactly one value of x in the domain makes P(x) true
- B
There is at least one value of x in the domain for which P(x) is true
- C
Every value of x in the domain makes P(x) true
- D
No value of x in the domain makes P(x) true
Correct answer
BThere is at least one value of x in the domain for which P(x) is true
Explanation
The existential quantifier asserts that at least one value in the domain satisfies the predicate; it does not require exactly one.
- A
- 28
A universal claim ∀xP(x) is false. What must be true?
- A
Every value in the domain makes P(x) false
- B
The domain must contain exactly one value
- C
At least one value in the domain makes P(x) true
- D
At least one value in the domain makes P(x) false
Correct answer
DAt least one value in the domain makes P(x) false
Explanation
A universal claim fails if there is a counterexample: some domain value for which the predicate is false.
- A
- 29
What is the negation of ∀xP(x)?
- A
∀x¬P(x)
- B
∃xP(x)
- C
¬∃x¬P(x)
- D
∃x¬P(x)
Correct answer
D∃x¬P(x)
Explanation
To deny that P holds for every value, it is enough to say that some value makes P false.
- A
- 30
What is the negation of ∃xP(x)?
- A
∃x¬P(x)
- B
¬∀x¬P(x)
- C
∀xP(x)
- D
∀x¬P(x)
Correct answer
D∀x¬P(x)
Explanation
Denying that any value satisfies P means that every value makes P false.
- A
- 31
In a nested expression, how should a reader determine which part a quantifier applies to?
- A
Ignore variable scope and evaluate the operators from left to right
- B
Assume each quantifier applies to the entire expression, regardless of its position
- C
Apply each quantifier only to the variable immediately beside it
- D
Identify the scope governed by that quantifier, rather than assuming it covers every predicate
Correct answer
DIdentify the scope governed by that quantifier, rather than assuming it covers every predicate
Explanation
The lesson emphasizes that a variable's quantifier may govern only a specific part of a larger predicate expression.
- A
- 32
What happens to conjunction and disjunction when a negation is pushed inward using De Morgan's laws?
- A
Both operators become equivalences
- B
They remain unchanged, while only the variables switch places
- C
Both operators become implications
- D
They switch: conjunction becomes disjunction, and disjunction becomes conjunction
Correct answer
DThey switch: conjunction becomes disjunction, and disjunction becomes conjunction
Explanation
De Morgan's laws exchange conjunction and disjunction while negating the component propositions.
- A
- 33
Which expression is equivalent to ¬(p∧q)?
- A
p∧¬q
- B
¬p∧¬q
- C
p∨q
- D
¬p∨¬q
Correct answer
D¬p∨¬q
Explanation
By De Morgan's law, negating a conjunction gives the disjunction of the negated components.
- A
- 34
Which expression is equivalent to ¬(p∨q)?
- A
¬p∧¬q
- B
p∧q
- C
¬p∨¬q
- D
p∨¬q
Correct answer
A¬p∧¬q
Explanation
By De Morgan's law, negating a disjunction gives the conjunction of the negated components.
- A
- 35
Which expression is equivalent to ¬(¬p)?
- A
p
- B
p∧¬p
- C
¬p
- D
p∨¬p
Correct answer
Ap
Explanation
Applying negation twice restores the original proposition.
- A
- 36
When negating a statement with quantifiers, what change accompanies moving the negation inward?
- A
Each universal quantifier becomes existential, and each existential quantifier becomes universal
- B
Universal quantifiers remain universal, and existential quantifiers remain existential
- C
Every quantifier is removed from the expression
- D
Each variable is replaced by a different variable
Correct answer
AEach universal quantifier becomes existential, and each existential quantifier becomes universal
Explanation
Negating a universally quantified statement produces an existential counterexample, while negating an existential statement produces a universal claim of failure.
- A
- 37
What is a useful method for negating a complex predicate statement?
- A
Negate only the outermost predicate and leave all quantifiers untouched
- B
Move the negation inward step by step, changing operators and quantifiers as required
- C
Replace every predicate with its opposite without changing any operators
- D
Remove the variables and evaluate the statement as a proposition
Correct answer
BMove the negation inward step by step, changing operators and quantifiers as required
Explanation
The lesson recommends pushing the negation inward gradually, applying the relevant logical and quantifier-negation laws at each step.
- A
- 38
What does a rule of inference do?
- A
It assigns a domain to every variable in a predicate
- B
It determines the order of operations in a truth table
- C
It changes a false premise into a true premise
- D
It licenses a conclusion from one or more given statements
Correct answer
DIt licenses a conclusion from one or more given statements
Explanation
Rules of inference describe how a conclusion can be derived from given propositions or predicates.
- A
- 39
Given p→q and p, what conclusion follows by modus ponens?
- A
q
- B
p∧¬q
- C
¬q
- D
¬p
Correct answer
Aq
Explanation
Modus ponens uses an implication and its true antecedent to infer the consequent.
- A
- 40
Given p→q and ¬q, what conclusion follows by modus tollens?
- A
¬p
- B
q
- C
p∨q
- D
p
Correct answer
A¬p
Explanation
Modus tollens infers that the antecedent is false when the implication holds and its consequent is false.
- A
- 41
From the premise p∨q, can one validly conclude p alone?
- A
Yes, because a disjunction requires its first part to be true
- B
No, because a disjunction is false whenever either part is false
- C
Yes, because inclusive 'or' makes both parts true
- D
No, because q could be true while p is false
Correct answer
DNo, because q could be true while p is false
Explanation
The disjunction can be true with p false and q true, so it does not guarantee that p is true.
- A
- 42
Given p, which conclusion is licensed by the addition rule?
- A
p∨q
- B
p∧q
- C
¬p
- D
q→p
Correct answer
Ap∨q
Explanation
If p is true, then the inclusive disjunction p∨q is true regardless of q.
- A
- 43
Given p∧q, which conclusion can be drawn by simplifying the conjunction?
- A
¬p
- B
p
- C
p∨¬q
- D
p↔q
Correct answer
Bp
Explanation
A true conjunction guarantees that each conjunct is true, so p can be inferred from p∧q.
- A
- 44
Given both p and q, what combined statement can be inferred?
- A
p→¬q
- B
¬p∧q
- C
p∧q
- D
p∨¬q
Correct answer
Cp∧q
Explanation
If both propositions are established, their conjunction is true; this is the conjunction rule.
- A
- 45
Given p and ¬q, which statement is guaranteed to be true?
- A
p∧q
- B
p→¬q
- C
¬p∨q
- D
p∨q
Correct answer
Dp∨q
Explanation
Since p is true, the inclusive disjunction p∨q is true, whatever the truth value of q.
- A
- 46
What does universal instantiation allow one to infer from ∀xP(x)?
- A
¬P(c) for every particular value c in the domain
- B
∀cP(x) without assigning a value to x
- C
∃x¬P(x) for some value in the domain
- D
P(c) for any particular value c in the domain
Correct answer
DP(c) for any particular value c in the domain
Explanation
If a predicate holds for every element of the domain, it holds for any chosen element in that domain.
- A
- 47
What does existential generalization allow one to infer from P(c), when c belongs to the domain?
- A
∃x¬P(x)
- B
∃xP(x)
- C
∀x¬P(x)
- D
∀xP(x)
Correct answer
B∃xP(x)
Explanation
A single domain element satisfying P is enough to establish that at least one such element exists.
- A
- 48
If P(23) is true and 23 belongs to the domain, what conclusion follows by existential generalization?
- A
∃x¬P(x)
- B
∃xP(x)
- C
∀x¬P(x)
- D
∀xP(x)
Correct answer
B∃xP(x)
Explanation
Since the particular domain element 23 satisfies P, at least one domain element satisfies P.
- A
- 49
For the domain of integers and the predicate P(x) meaning 'x+1 is an integer,' what does universal instantiation permit?
- A
From ∃xP(x), infer ¬P(23)
- B
From P(23), infer ∀xP(x)
- C
From ¬P(23), infer ∀xP(x)
- D
From ∀xP(x), infer P(23)
Correct answer
DFrom ∀xP(x), infer P(23)
Explanation
Universal instantiation permits substituting any particular integer, including 23, into a predicate asserted to hold for all integers.
- A
- 50
Which inference direction correctly distinguishes universal instantiation from existential generalization?
- A
An existential claim supports a claim about every element; a false instance supports an existential claim
- B
A universal claim supports an existential counterexample; a true instance supports a universal claim
- C
A universal claim supports a claim about a chosen element; a true instance supports an existential claim
- D
A true instance supports a universal claim; a universal claim supports only a negated instance
Correct answer
CA universal claim supports a claim about a chosen element; a true instance supports an existential claim
Explanation
Universal instantiation specializes an all-elements claim; existential generalization moves from one satisfying instance to an existence claim.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.