Introduction to Mathematical Logic
- 46Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary purpose of mathematical logic?
What is the primary purpose of mathematical logic?
46 questions
- 1
What is the primary purpose of mathematical logic?
- A
To replace all mathematical proofs with computer simulations
- B
To calculate numerical results without using mathematical definitions
- C
To describe how physical objects move through space and time
- D
To determine whether statements are true or false through valid reasoning
Correct answer
DTo determine whether statements are true or false through valid reasoning
Explanation
Mathematical logic is described as the science of reasoning that helps determine whether a statement is true or false and whether conclusions follow validly.
- A
- 2
Which method is presented as a way to prove the statement that the sum of the first n numbers is 2n(n+1)?
- A
Mathematical induction
- B
Geometric construction
- C
Randomized testing
- D
Experimental measurement
Correct answer
AMathematical induction
Explanation
The lecture uses mathematical induction to prove the summation formula.
- A
- 3
What are the two essential parts of the induction argument described in the lecture?
- A
Assuming the conclusion and simplifying both sides algebraically
- B
Proving the statement for k+1 and then disproving it for k
- C
Proving a base case and proving that truth for k implies truth for k+1
- D
Testing two numerical examples and averaging their results
Correct answer
CProving a base case and proving that truth for k implies truth for k+1
Explanation
The proof establishes the statement for an initial value and then shows that if it holds for an arbitrary k, it also holds for k+1.
- A
- 4
Why does mathematical logic help establish that an induction argument is a valid proof?
- A
It determines the answer by testing only the largest value of n
- B
It guarantees that every statement containing numbers is automatically true
- C
It replaces the base case with an assumption about all possible values
- D
It provides principles for determining whether the reasoning from the premises to the conclusion is valid
Correct answer
DIt provides principles for determining whether the reasoning from the premises to the conclusion is valid
Explanation
Mathematical logic supplies the reasoning principles used to verify that the steps in an argument constitute a correct proof.
- A
- 5
Why is Boolean algebra an important application of mathematical logic?
- A
Boolean algebra forms a basis for computer architecture
- B
Boolean algebra determines the physical size of computer chips
- C
Boolean algebra replaces all programming languages in computers
- D
Boolean algebra is used only to analyze natural-language grammar
Correct answer
ABoolean algebra forms a basis for computer architecture
Explanation
The lecture identifies Boolean algebra as an important application because it forms the basis of computer architecture.
- A
- 6
What is the main limitation of verifying a program only by running it on several inputs?
- A
A tested input can never produce a correct result more than once
- B
An untested input may cause the program to produce an incorrect result
- C
Running a program prevents it from accepting any future inputs
- D
Testing inputs can prove that the program contains no possible errors
Correct answer
BAn untested input may cause the program to produce an incorrect result
Explanation
Testing selected inputs cannot rule out failures on inputs that were never tried.
- A
- 7
Why is formal logical verification especially important for software used in an airplane application?
- A
The software can be verified by testing only one representative input
- B
The software must avoid using any conditional statements
- C
The software must perform its required actions correctly and robustly in all relevant situations
- D
The software is allowed to fail as long as most ordinary inputs work
Correct answer
CThe software must perform its required actions correctly and robustly in all relevant situations
Explanation
Critical applications require software to be robust and consistently correct, so testing a limited collection of inputs is insufficient.
- A
- 8
What is the goal of program verification and validation?
- A
To measure how quickly a programmer can write the software
- B
To convert every program into a mathematical theorem
- C
To determine whether software performs its intended task correctly
- D
To determine whether a program uses the fewest possible variables
Correct answer
CTo determine whether software performs its intended task correctly
Explanation
Program verification and validation focus on checking whether a program performs its intended application correctly.
- A
- 9
What is the purpose of hardware verification in the context described?
- A
To determine whether hardware components can be replaced by software instructions
- B
To check whether a computer can operate without any logical operations
- C
To check whether components embedded on hardware perform their intended tasks correctly
- D
To prove that every motherboard has identical physical dimensions
Correct answer
CTo check whether components embedded on hardware perform their intended tasks correctly
Explanation
Mathematical logic can be used to verify that chips and other units embedded on a motherboard are correctly implemented and functioning.
- A
- 10
Which statement correctly describes two applications of mathematical logic mentioned in artificial intelligence and theorem proving?
- A
PROLOG is used only for hardware design, and theorem proving avoids computer programs
- B
PROLOG uses mathematical logic, and automated theorem proving uses programs to determine whether statements are true
- C
PROLOG eliminates mathematical logic, and theorem proving relies only on physical experiments
- D
PROLOG stores numerical measurements, and theorem proving tests statements only by polling users
Correct answer
BPROLOG uses mathematical logic, and automated theorem proving uses programs to determine whether statements are true
Explanation
PROLOG is identified as a logic-based language used in AI, while automated theorem proving uses computer programs to establish whether statements are true or false.
- A
- 11
What is the relationship between propositional logic and predicate logic?
- A
Propositional logic is presented as a basic form, while predicate logic is its generalization
- B
Propositional logic is used only for hardware, while predicate logic is used only for arithmetic
- C
The two forms are unrelated because neither uses truth values
- D
Predicate logic is presented as a simpler form that cannot express propositions
Correct answer
APropositional logic is presented as a basic form, while predicate logic is its generalization
Explanation
The lecture describes propositional logic as the basic form of mathematical logic and predicate logic as its generalization.
- A
- 12
Which definition best describes a proposition?
- A
A command that tells someone to perform a mathematical operation
- B
Any expression containing a variable whose value can change
- C
A question that must be answered with either yes or no
- D
A declarative statement that is either true or false, but not both simultaneously
Correct answer
DA declarative statement that is either true or false, but not both simultaneously
Explanation
A proposition is a declarative statement with exactly one of two truth values: true or false.
- A
- 13
Why is the statement “New Delhi is the capital of India” a proposition?
- A
It contains a variable whose value determines its truth
- B
It can be true and false simultaneously in different interpretations
- C
It is declarative and has a definite truth value
- D
It asks a question whose answer can be either true or false
Correct answer
CIt is declarative and has a definite truth value
Explanation
The statement declares a fact and is either true or false; it cannot have both truth values at the same time.
- A
- 14
Why is the statement “Bahubali was killed by Katappa” treated as a proposition in the lecture?
- A
It is a command that becomes true whenever someone obeys it
- B
It contains an unspecified variable that can take any truth value
- C
It is neither true nor false because statements about stories cannot be evaluated
- D
It is a declarative statement that can be assigned a definite truth value
Correct answer
DIt is a declarative statement that can be assigned a definite truth value
Explanation
The statement declares something and can be evaluated as true or false, so it qualifies as a proposition.
- A
- 15
Why is the expression “x+2=4” not a proposition when no value of x is specified?
- A
It is not written using any numerical symbols
- B
Its truth value depends on the unspecified value assigned to x
- C
It is simultaneously true and false for every possible value of x
- D
It is a question rather than a declarative expression
Correct answer
BIts truth value depends on the unspecified value assigned to x
Explanation
Without assigning a value to x, the expression may be true for one value and false for another, so it does not have one definite truth value.
- A
- 16
What is a propositional variable?
- A
A placeholder representing an arbitrary proposition whose value is true or false
- B
A complete proof that establishes the truth of a theorem
- C
A symbol that always represents the truth value false
- D
A numerical variable that can store only positive integers
Correct answer
AA placeholder representing an arbitrary proposition whose value is true or false
Explanation
A propositional variable is a placeholder for a proposition, and its truth value depends on the proposition assigned to it.
- A
- 17
How are propositional variables typically denoted in the lecture?
- A
By complete English sentences written without symbols
- B
By numerical constants such as 1, 2, and 3
- C
By uppercase letters such as P, Q, and R only
- D
By lowercase letters such as p, q, and r
Correct answer
DBy lowercase letters such as p, q, and r
Explanation
The lecture states that propositional variables are typically represented by lowercase letters such as p, q, and r.
- A
- 18
What analogy is used to explain the role of a propositional variable?
- A
It is compared with a loop that repeatedly executes a command
- B
It is compared with a hardware chip that stores physical instructions
- C
It is compared with an integer variable in a programming language that stores an assigned value
- D
It is compared with a fixed constant that cannot receive any value
Correct answer
CIt is compared with an integer variable in a programming language that stores an assigned value
Explanation
The lecture compares a propositional variable with a programming variable such as an integer variable: both serve as placeholders for assigned values.
- A
- 19
What is a compound proposition?
- A
A proposition that must contain exactly two variables
- B
A sentence that contains no declarative component
- C
A larger proposition formed by combining propositions with logical operators
- D
A numerical equation formed by combining integers with arithmetic operators
Correct answer
CA larger proposition formed by combining propositions with logical operators
Explanation
Compound propositions are constructed by combining simpler propositions using logical operators.
- A
- 20
How does the negation operator affect a proposition?
- A
It changes a proposition into a numerical variable
- B
It changes true to true and false to false
- C
It makes every proposition simultaneously true and false
- D
It changes true to false and false to true
Correct answer
DIt changes true to false and false to true
Explanation
Negation reverses the truth value of its single proposition.
- A
- 21
Why is negation classified as a unary logical operator?
- A
It combines one proposition with two numerical expressions
- B
It operates on one propositional variable
- C
It can be applied only to propositions that are false
- D
It always produces one truth value for two inputs
Correct answer
BIt operates on one propositional variable
Explanation
A unary operator acts on a single operand, and negation operates on one propositional variable.
- A
- 22
Which expression has the same meaning as the negation of p?
- A
p⇒p only
- B
∼p or the complement of p
- C
p∧p only
- D
p∨p only
Correct answer
B∼p or the complement of p
Explanation
The lecture notes that negation may be written using notation such as ∼p or a bar over p; these are alternative notations for the same operation.
- A
- 23
When is the conjunction p∧q true?
- A
Only when both p and q are false
- B
Only when both p and q are true
- C
When at least one of p and q is true
- D
Whenever p and q have different truth values
Correct answer
BOnly when both p and q are true
Explanation
Conjunction, or logical AND, is true only when both component propositions are true.
- A
- 24
When is the disjunction p∨q false?
- A
Whenever exactly one of p and q is true
- B
Only when both p and q are true
- C
Whenever p and q have the same truth value
- D
Only when both p and q are false
Correct answer
DOnly when both p and q are false
Explanation
Disjunction, or logical OR, is true when at least one input is true and false only when both inputs are false.
- A
- 25
Why are conjunction and disjunction classified as binary operators?
- A
Each is true only when two propositions are false
- B
Each operates on two propositional variables
- C
Each can produce only two possible truth values
- D
Each must be written using exactly two symbols
Correct answer
BEach operates on two propositional variables
Explanation
A binary operator acts on two operands; conjunction and disjunction operate on p and q.
- A
- 26
What does it mean that propositional logic uses two-valued logic?
- A
Every proposition must contain exactly two variables
- B
Every compound proposition must use exactly two operators
- C
Every proposition or result has one of two possible values: true or false
- D
Every logical expression must be evaluated twice
Correct answer
CEvery proposition or result has one of two possible values: true or false
Explanation
In two-valued logic, each propositional variable and each result of an operator takes either true or false.
- A
- 27
Why is the result of applying a logical operator to propositions also a proposition?
- A
The result contains no logical symbols
- B
The result is necessarily true regardless of its inputs
- C
The result always becomes a numerical equation
- D
The result receives a truth value of either true or false
Correct answer
DThe result receives a truth value of either true or false
Explanation
Logical operators produce expressions whose values are true or false, so their results are propositions.
- A
- 28
How many possible truth assignments exist for two propositional variables p and q?
- A
Eight assignments
- B
Two assignments
- C
Four assignments
- D
Three assignments
Correct answer
CFour assignments
Explanation
The four assignments are (T,T), (T,F), (F,T), and (F,F).
- A
- 29
Why does each logical operator on two variables correspond to a truth table with four output entries?
- A
The operator is evaluated once for each of four different names
- B
Each variable can take four truth values in two-valued logic
- C
Every logical operator must contain four separate symbols
- D
The two input variables have four possible combinations of truth values
Correct answer
DThe two input variables have four possible combinations of truth values
Explanation
Two variables each have two possible values, producing 22=4 input combinations and therefore four output rows.
- A
- 30
How many possible output patterns can a binary logical operator have on two propositional variables?
- A
Sixteen, because each of four rows can independently output true or false
- B
Two, because the operator has only two operands
- C
Four, because there are four input combinations
- D
Eight, because each variable has two possible values
Correct answer
ASixteen, because each of four rows can independently output true or false
Explanation
There are four rows, and each row can independently receive either true or false, giving 24=16 possible truth tables.
- A
- 31
What determines whether two logical operators on p and q are distinct?
- A
Whether their truth tables differ in at least one row
- B
Whether they are discussed in different mathematical textbooks
- C
Whether one operator uses letters and the other uses symbols
- D
Whether they have different names regardless of their outputs
Correct answer
AWhether their truth tables differ in at least one row
Explanation
Logical operators are distinguished by their truth tables; different names do not make operators distinct if their truth tables are identical.
- A
- 32
Why can there be no more than sixteen distinct binary logical operators in two-valued propositional logic?
- A
There are only sixteen possible propositional variables
- B
There are only sixteen possible names for logical operators
- C
There are only sixteen possible combinations of two symbols
- D
There are only sixteen possible truth tables for the four input combinations
Correct answer
DThere are only sixteen possible truth tables for the four input combinations
Explanation
A binary operator has four input rows, each with two independent output choices, so there are 24=16 possible truth tables.
- A
- 33
What is another name for the conditional operator p⇒q?
- A
The if-then operator
- B
The both-and operator
- C
The complement operator
- D
The either-or operator
Correct answer
AThe if-then operator
Explanation
The conditional statement p⇒q is also called an if-then statement.
- A
- 34
When is the conditional p⇒q false?
- A
When p is false and q is true
- B
When p is true and q is false
- C
When both p and q are false
- D
When both p and q are true
Correct answer
BWhen p is true and q is false
Explanation
A conditional is false only when its antecedent is true but its consequent is false; it is true for the other three combinations.
- A
- 35
In the election-promise example, when is the statement “If John becomes prime minister, then good days will come” considered false?
- A
When John becomes prime minister but good days do not come
- B
When John becomes prime minister and good days do come
- C
When John does not become prime minister and good days do not come
- D
When John does not become prime minister and good days do come
Correct answer
AWhen John becomes prime minister but good days do not come
Explanation
The promise is broken only when its condition occurs but its promised result does not occur, corresponding to p true and q false.
- A
- 36
Why is p⇒q considered true when p is false, according to the promise interpretation?
- A
A false premise automatically makes the conclusion true as an English fact
- B
The conclusion must be false whenever the premise is false
- C
The promise has not been violated because its stated condition never occurred
- D
The conditional is ignored whenever either statement is false
Correct answer
CThe promise has not been violated because its stated condition never occurred
Explanation
If John does not become prime minister, the promise is not broken, regardless of whether good days come.
- A
- 37
Which phrase is identified as an interpretation of p⇒q?
- A
q contradicts p
- B
q follows from p
- C
p is equivalent to q
- D
p and q are both false
Correct answer
Bq follows from p
Explanation
The lecture lists “q follows from p” as one way to interpret the conditional.
- A
- 38
What does the interpretation “p is sufficient for q” mean?
- A
If q is false, then p must be true
- B
If p is true, then q can be concluded
- C
If q is true, then p must be concluded
- D
If p is false, then q must be false
Correct answer
BIf p is true, then q can be concluded
Explanation
Saying that p is sufficient for q means that establishing p is enough to conclude q, represented by p⇒q.
- A
- 39
Which statement is logically equivalent to p⇒q?
- A
q⇒p
- B
¬p⇒¬q
- C
¬q⇒¬p
- D
p∧¬q
Correct answer
C¬q⇒¬p
Explanation
The lecture states that p⇒q and its contrapositive, ¬q⇒¬p, have identical truth tables.
- A
- 40
What does the statement “I will go to the pub only if it is Friday” mean if p means “I will go to the pub” and q means “it is Friday”?
- A
q⇒p
- B
p∧q
- C
p⇒q
- D
¬p⇒q
Correct answer
Cp⇒q
Explanation
The phrase “p only if q” means that q is necessary for p, so it is represented by p⇒q.
- A
- 41
In the statement “I will go to the pub only if it is Friday,” which condition is necessary?
- A
Being ill is necessary for it being Friday
- B
It being Friday is necessary for going to the pub
- C
Going to the pub is necessary for it being Friday
- D
Going to the pub is necessary for avoiding Friday
Correct answer
BIt being Friday is necessary for going to the pub
Explanation
The statement means that if the person goes to the pub, then it must be Friday; therefore, Friday is necessary for going to the pub.
- A
- 42
Why is Friday not a sufficient condition for going to the pub in the example?
- A
A sufficient condition must always be expressed using negation
- B
The statement says that Friday is impossible whenever the pub is open
- C
A person may refrain from going even on a Friday because of illness or other work
- D
Going to the pub can occur only when it is not Friday
Correct answer
CA person may refrain from going even on a Friday because of illness or other work
Explanation
The lecture notes that there may be Fridays when the person is ill or has personal work, so Friday alone does not guarantee going to the pub.
- A
- 43
What error would result from representing “I will go to the pub only if it is Friday” as q⇒p?
- A
It would incorrectly claim that neither Friday nor going to the pub can occur
- B
It would incorrectly claim that every Friday guarantees going to the pub
- C
It would incorrectly claim that going to the pub guarantees that it is not Friday
- D
It would correctly express that Friday is necessary but not sufficient
Correct answer
BIt would incorrectly claim that every Friday guarantees going to the pub
Explanation
q⇒p says that Friday implies going to the pub, making Friday sufficient for going, which the original statement does not assert.
- A
- 44
In a conditional statement p⇒q, what is p called?
- A
The contrapositive of the statement
- B
The hypothesis, antecedent, or premise
- C
The conclusion, consequence, or result
- D
The necessary condition only
Correct answer
BThe hypothesis, antecedent, or premise
Explanation
The first component, p, is called the hypothesis, antecedent, or premise.
- A
- 45
In a conditional statement p⇒q, what is q called?
- A
The inverse of the statement
- B
The premise that must be assumed false
- C
The hypothesis or antecedent
- D
The conclusion or consequence
Correct answer
DThe conclusion or consequence
Explanation
The second component, q, is called the conclusion or consequence.
- A
- 46
What does the example involving a triangular Earth illustrate about p⇒q in mathematical logic?
- A
Mathematical logic requires every premise and conclusion to describe the same subject
- B
The premise and conclusion need not be related in ordinary English for the conditional to be logically valid
- C
A false premise makes the entire conditional false regardless of the conclusion
- D
A conditional is false whenever its conclusion is factually false
Correct answer
BThe premise and conclusion need not be related in ordinary English for the conditional to be logically valid
Explanation
The example shows that if the premise is false, the conditional is logically true regardless of whether the conclusion is true or false; the two statements need not have an English-language relationship.
- A

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