PRELIM DISCRETE MATH Flashcards
- What is the output of an AND gate when both inputs are 1?
A. 0
B. 1
C. Either 0 or 1
D. Undefined
B. 1 (AND gate outputs 1 when both inputs are 1)
- In the statement “Vx(P(x)→Q(x))”, what does the symbol V represent?
A. Existential quantifier
B. Universal quantifier
C. Logical implication
D. Logical conjunction
B. Universal quantifier (∀ represents “for all”)
- Which logic gate performs the opposite function of an OR gate?
A. AND gate
B. XOR gate
C. NOR gate
D. NAND gate
C. NOR gate (NOR is the opposite of OR)
- In a direct proof, what is the first step?
A. Assume the conclusion is false
B. Assume the hypothesis is true
C. State the contradiction
D. Write the negation
B. Assume the hypothesis is true (First step in direct proof)
- What is the output of an XOR gate when both inputs are the same?
A. Always 1
B. Always O
C. Depends on the input value
D. Undefined
B. Always 0 (XOR outputs 0 when inputs are the same)
- For the statement “3x P(x)”, how would you disprove it?
A. Show P(x) is true for one x
B. Show P(x) is true for all x
C. Show P(x) is false for all x
D. Show P(x) is false for one x
D. Show P(x) is false for one x (Disproving an existential quantifier)
- In an indirect proof (proof by contradiction), what do we initially assume?
A. The hypothesis is true
B. The conclusion is true
C. The negation of the conclusion.
D. Both hypothesis and conclusion are false
The negation of the conclusion (Indirect proof assumes ¬Q)
- Which gate is known as a universal gate?
A. OR gate
B. AND gate
C. NAND gate
D. XOR gate
C. NAND gate (NAND is a universal gate
- What does the existential quantifier (3) assert?
A. The statement is true for all values
B. The statement is true for at least one value
C. The statement is false for all values
D. The statement is false for at least one value
B. The statement is true for at least one value (∃ means “exists”)
- What is the output of a NOR gate when both inputs are 0?
A. O
B. 1
C. Either 0 or 1
D. Undefined
B. 1 (NOR gate outputs 1 when both inputs are 0)
- In mathematical logic, what is the contrapositive of “P→Q”?
A. Q→P
B. ~P~Q
C. ~Q→~P
D. P→~Q
C. ~Q → ~P (Contrapositive of P → Q)
- How many inputs are required for a basic XOR gate?
A. 1
B. 2
C. 3
D. 4
B. 2 (XOR gate requires two inputs)
- What is the primary purpose of using quantifiers in mathematical logic?
A. To make statements more complex
B. To specify the scope of variables
C. To create truth tables
D. To prove contradictions.
B. To specify the scope of variables (Purpose of quantifiers)
- Which method of proof assumes a statement is false and arrives at a
contradiction?
A. Direct proof
B. Proof by cases
C. Proof by contradiction
D. Proof by induction
C. Proof by contradiction (Assumes false, derives contradiction)
- What is the output of a NAND gate when both inputs are 1?
A. 1
В. 0
C. Either 0 or 1
D. Undefined
B. 0 (NAND gate outputs 0 when both inputs are 1)
- What is a logical statement?
A. A phrase that contains only numbers
B. A declarative sentence that is either true or false
C. A question that requires a yes or no answer
D. An exclamatory sentence expressing emotion
B. A declarative sentence that is either true or false (Definition of a logical statement)
- Which of the following is a logical connective?
A. Therefore
B. Meanwhile
C. However
D. And
D. And (Logical connective)
- In a conditional statement “if p then q,” what is the converse?
A. If not p then not q
B. If q then p
C. If not q then not p
D. If p then not q
B. If q then p (Converse of “if p then q”)
- What is the contrapositive of “If it rains, then the ground is wet”?
A. If it doesn’t rain, then the ground isn’t wet
B. If the ground is wet, then it rains
C. If the ground isn’t wet, then it doesn’t rain
D. If it rains, then the ground isn’t wet
C. If the ground isn’t wet, then it doesn’t rain (Contrapositive)
- Which rule of inference states that if p→q and q→r are true, then p→r is true?
A. Modus Ponens
B. Hypothetical Syllogism
C. Modus Tollens
D. Disjunctive Syllogism
B. Hypothetical Syllogism (If p → q and q → r, then p → r)
- What is the inverse of “If you study hard, then you will pass”?
A. If you pass, then you studied hard
B. If you don’t pass, then you didn’t study hard
C. If you don’t study hard, then you won’t pass
D. If you study hard, then you won’t pass
C. If you don’t study hard, then you won’t pass (Inverse)
D. If you study hard, then you won’t pass 22. Which of the following is a tautology?
A. p^q
B. p V ~p
C. p q
D.p↔q
B. p V ~p (Tautology)
- In logical equivalence, what does the symbol = represent? A. Exactly equal to
B. Approximately equal to
C. Logically equivalent to
D. Not equal to
C. Logically equivalent to (≡ symbol meaning)
- What is Modus Ponens?
A. If p→q and ~q, then ~p
B. If p→q and p, then q
C. If p q and q→r, then p→r
D. If pvq and ~p, then q
B. If p → q and p, then q (Modus Ponens)