chapter

    Logic and Proof Techniques Practice Questions for Gate Cs

    Solve 208+ Logic and Proof Techniques practice questions for GATE CS with answers and detailed solutions. Free sample questions below.

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    Level 1: Warm-up
    Consider the following two statements regarding nested quantifier conjectures:

    Assertion (A): The conjecture implies that for every satisfying , there is a specific (which may depend on ) satisfying .

    Reason (R): The existential quantifier is inside the scope of the universal quantifier , meaning the choice of is independent of .

    Which of the following options is correct?
    Question 2
    Level 1: Warm-up
    Match the following implications with their correct negations.

    List I (Implication) 1. 2. 3.
    List II (Negation) A. B. C.
    Question 3
    Level 1: Warm-up

    Let the domain of discourse be . Let be the predicate " is prime". Which of the following statements is true?

    Question 4
    Level 1: Warm-up
    Consider the following two statements regarding propositional and predicate logic translation:

    Assertion (A): The statement "All computers are electronic" is correctly translated as .

    Reason (R): The universal quantifier must be paired with the conjunction operator to properly restrict the domain of discourse.

    Which of the following options is correct?
    Question 5
    Level 1: Warm-up

    Let the domain be . Let be the predicate . How many values of satisfy the statement ?

    Question 6
    Level 1: Warm-up

    Let be a predicate over a non-empty domain . Which of the following scenarios for the truth values of quantified statements is/are IMPOSSIBLE?

    Question 7
    Level 1: Warm-up

    Let and be predicates over a non-empty domain . Which of the following combinations of truth values for quantified statements is/are IMPOSSIBLE?

    Question 8
    Level 1: Warm-up

    Let be a domain with exactly $4$ elements and let be a binary predicate on . Treat as the set of ordered pairs for which is true. For a formula , let denote the smallest number of ordered pairs that this set must contain for to be TRUE. Which one of the following statements is TRUE?

    Question 9
    Level 1: Warm-up
    Consider the premise . Match each proof scenario in List I with its correct description in List II.

    List I:
    1. Let be arbitrary. Then . Let be such that .
    2. Let be such that . Let be arbitrary. Then .
    3. Let be arbitrary. Let be arbitrary. Then .
    4. From : let be such that . Let be arbitrary. Then .

    List II:
    (i) Correct instantiation of the given premise
    (ii) Incorrect — locks in a single witness for all
    (iii) Incorrect — treats the existential witness as arbitrary
    (iv) Correct instantiation, but of a different premise

    Which of the following matchings is/are correct?
    Question 10
    Level 1: Warm-up

    Consider the statement: "The program terminates if the input is valid."

    Let represent "The input is valid" and represent "The program terminates."

    Which of the following is the correct propositional logic translation?

    Free preview ends here

    Login to view the complete practice questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Logic and Proof Techniques Practice Questions for GATE CS

    Solve 208+ Logic and Proof Techniques practice questions for GATE CS with answers and detailed solutions. Free sample questions below.

    Chapter Roadmap: Logic and Proof Techniques

    Chapter Roadmap

    Logic and Proof Techniques

    1. Propositional Translation and Implication

    Translating English to logic. Mastering the implication operator. Foundational.

    2. Tautologies and Logical Equivalence

    Proving statements are always true/false. Simplifying logic using algebraic laws. High weightage.

    3. Predicate Logic and Quantifier Translation

    Moving to variables. Universal and existential quantifiers. Very high weightage.

    4. Quantified Reasoning and Induction

    Nested quantifiers. Proving infinite sequences using induction. Crucial for proofs.

    Goal: Read any complex mathematical statement, translate it into perfect logic, and prove its validity.

    The Art of Propositional Translation

    What is a Proposition?

    A proposition is a declarative sentence that has a definitive truth value: it must be either True or False, but never both, and never neither.

    Propositions

    "The sky is blue."
    "Seven is a prime number."

    Not Propositions

    "Close the door." (Command)
    "What is the time?" (Question)

    The Translation Process

    1. Identify the atomic (simple) declarative sentences.
    2. Assign a lowercase letter (e.g., ) to each.
    3. Identify the connecting words (and, or, if, then).
    4. Map the connecting words to logical operators ().

    Logic and Proof Techniques: Solved Questions with Step-by-Step Explanations (10 Problems)

    Question 1 · Engineering Mathematics MCQ
    Consider the following two statements regarding nested quantifier conjectures:

    Assertion (A): The conjecture implies that for every satisfying , there is a specific (which may depend on ) satisfying .

    Reason (R): The existential quantifier is inside the scope of the universal quantifier , meaning the choice of is independent of .

    Which of the following options is correct?
    1. A.

      Both A and R are true and R is the correct explanation of A.

    2. B.

      Both A and R are true but R is not the correct explanation of A.

    3. C.

      A is true but R is false.

    4. D.

      A is false but R is true.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: The order of nested quantifiers dictates dependency. An existential quantifier inside a universal quantifier means the existential variable depends on the universal variable.

    Exam route: Assertion A correctly states that may depend on because is inside . Reason R claims that being inside the scope means is independent of , which is the exact opposite of the truth. Thus, A is true, but R is false.

    Learning route:

    Step 1: Evaluate Assertion (A). The statement means "for every , there is a ". The can be chosen differently for each . Thus, depends on . A is True.

    Step 2: Evaluate Reason (R). The reason claims that being inside means is independent of . This is false. Scope dependency means the inner variable depends on the outer variable. R is False.

    Step 3: Combine the evaluations. A is true, but R is false.

    Answer: A is true but R is false (Option C).

    Tempting wrong path: A student might confuse the scope rule, thinking that being "inside" the scope isolates the variable, making it independent (Option A). This breaks at misunderstanding the direction of quantifier dependency.

    Generalization: Inner quantifiers depend on outer quantifiers. means depends on .

    Verification: If were independent, the statement would be written , meaning a single works for all .

    Question 2 · Engineering Mathematics MCQ
    Match the following implications with their correct negations.

    List I (Implication) 1. 2. 3.
    List II (Negation) A. B. C.
    1. A.

      1-C, 2-B, 3-A

    2. B.

      1-B, 2-C, 3-A

    3. C.

      1-C, 2-A, 3-B

    4. D.

      1-A, 2-B, 3-C

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The negation of an implication is . The hypothesis remains unchanged, and the conclusion is negated.

    Step 1: Negate item 1: . This matches C.

    Step 2: Negate item 2: . This matches B.

    Step 3: Negate item 3: . This matches A.

    Step 4: Combine the matches: 1-C, 2-B, 3-A.

    Answer: 1-C, 2-B, 3-A (Option A).

    Question 3 · Engineering Mathematics MCQ

    Let the domain of discourse be . Let be the predicate " is prime". Which of the following statements is true?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: The uniqueness quantifier requires exactly one element to satisfy the predicate, while just requires at least one element to fail it.

    Exam route: The prime numbers in are 2, 3, and 5. Since there are three primes, is false. Since 4 is not prime, is true, making true.

    Learning route:

    Step 1: Identify the domain: .

    Step 2: Evaluate for each element:

    is True (2 is prime).

    is True (3 is prime).

    is False (4 is not prime).

    is True (5 is prime).

    Step 3: Evaluate Option A: means exactly one element is prime. We have three, so this is False.

    Step 4: Evaluate Option B: means all elements are prime. 4 is not, so this is False.

    Step 5: Evaluate Option C: means at least one element is not prime. Since is False, is True. This statement is True.

    Step 6: Evaluate Option D: means no elements are prime. We have three primes, so this is False.

    Answer: (Option C).

    Tempting wrong path: A student might forget that 2, 3, and 5 are all prime, or mistakenly think 4 is prime, and conclude there is only one prime number in the set, choosing Option A. This breaks at incorrect identification of prime numbers.

    Generalization: Always list all elements satisfying the predicate before evaluating uniqueness or existential negation.

    Verification: 4 is definitively not prime, so is true, which directly satisfies .

    Question 4 · Engineering Mathematics MCQ
    Consider the following two statements regarding propositional and predicate logic translation:

    Assertion (A): The statement "All computers are electronic" is correctly translated as .

    Reason (R): The universal quantifier must be paired with the conjunction operator to properly restrict the domain of discourse.

    Which of the following options is correct?
    1. A.

      Both A and R are true and R is the correct explanation of A.

    2. B.

      Both A and R are true but R is not the correct explanation of A.

    3. C.

      A is true but R is false.

    4. D.

      A is false but R is true.

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: The universal quantifier "All" pairs with implication (), while the existential quantifier "Some" pairs with conjunction ().

    Exam route: "All computers are electronic" translates to . Thus, Assertion A is true. Reason R claims pairs with , which is the standard trap; pairs with . Thus, R is false.

    Learning route:

    Step 1: Evaluate Assertion (A). The phrase "All A are B" is universally translated as . Here, A is "computers" and B is "electronic". The translation is perfectly correct. A is True.

    Step 2: Evaluate Reason (R). The reason states that must be paired with . This is incorrect. If we wrote , it would mean "Everything in the universe is both a computer and electronic", which restricts the domain incorrectly. The correct pairing for is . R is False.

    Step 3: Combine the evaluations. A is true, but R is false.

    Answer: A is true but R is false (Option C).

    Tempting wrong path: A student might believe that acts as a giant AND gate over the domain, and therefore the connective inside the predicate should also be , leading them to choose Option A or B. This breaks at confusing the semantic meaning of the quantifier (generalized AND) with the syntactic connective used in the translation (implication).

    Generalization: "All A are B" is strictly . Using would incorrectly assert that everything in the universe is both A and B.

    Verification: If the domain includes an apple, is false. In , False False is True, which is correct. In , False False is False, which incorrectly breaks the statement.

    Question 5 · Engineering Mathematics MCQ

    Let the domain be . Let be the predicate . How many values of satisfy the statement ?

    1. A.

      2

    2. B.

      3

    3. C.

      4

    4. D.

      5

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The existential quantifier requires finding at least one valid in the domain for a given .

    Exam route: Solve for , giving . For to be in , we need , which means . The only values of in that satisfy this are 3 and 4. Thus, 2 values.

    Learning route:

    Step 1: Understand the condition. We need such that .

    Step 2: Isolate . .

    Step 3: Apply the domain constraint. Since , we must have .

    Step 4: Solve the inequality for . Adding 3 to all parts gives .

    Step 5: Intersect with the domain of . must be in and . The valid values are and .

    Step 6: Count the valid values. There are exactly 2 values.

    Answer: 2 (Option A).

    Tempting wrong path: A student might make a sign error and solve . Then . Intersecting with gives , leading to a count of 4 (Option C). This breaks at the initial algebraic isolation of .

    Generalization: Always isolate the existentially quantified variable carefully and apply the domain bounds strictly.

    Verification: For , . For , . For , . The count is exactly 2.

    Question 6 · Engineering Mathematics MSQ

    Let be a predicate over a non-empty domain . Which of the following scenarios for the truth values of quantified statements is/are IMPOSSIBLE?

    1. A.

      is true and is true.

    2. B.

      is false and is true.

    3. C.

      is false and is true.

    4. D.

      is false and is false.

    Correct Answer:

    ["A","B"]

    Step-by-Step Solution

    Insight: an "impossible scenario" item over a non-empty domain is a hunt for a statement and its own negation being asserted together, or a boundary condition being violated. The key boundary is that a non-empty domain forces .

    Exam route: convert every claim into plain "all pass" / "at least one fails" language, then look for a clash or a boundary violation.

    Learning route:

    Step 1: Fix meanings. true means every element passes; true means at least one passes; true means every element fails; true means at least one fails.

    Step 2: Option A — "every element passes" and "at least one fails". These are exact negations of each other. They cannot both hold. <b>Impossible.</b>

    Step 3: Option B — "no element passes" ( is false) and "every element passes" ( is true). If no element passes, then certainly not every element passes (since ). This is another direct clash. <b>Impossible.</b>

    Step 4: Option C — "not all pass" and "at least one passes". This is a mixed domain. Take with true, false. Both claims hold. <b>Possible.</b>

    Step 5: Option D — "not all pass" and "not all fail". This is also a mixed domain. The same example with true, false works. <b>Possible.</b>

    Answer: A and B.

    Tempting wrong path: a student might think B is possible if the domain is empty, where "every element passes" is vacuously true and "no element passes" is also true. The break is the boundary condition stated in the problem: is <i>non-empty</i>. Another student might think C is impossible because "if not all pass, then some must fail, so must be false" — this misreads "not all" as "none", which is a different boundary slip.

    Generalisation: over a non-empty domain, and are negations, and strictly implies . Any scenario violating these is impossible.

    Verification: re-check B by instantiating. true gives for every . Since , pick any . Then is true, so is true, contradicting the claim that it is false. All other options were certified by an explicit non-empty domain.

    Question 7 · Engineering Mathematics MSQ

    Let and be predicates over a non-empty domain . Which of the following combinations of truth values for quantified statements is/are IMPOSSIBLE?

    1. A.

      is true and is false.

    2. B.

      is true and is false.

    3. C.

      is true, is true, and is false.

    4. D.

      is true, is false, and is false.

    Correct Answer:

    ["A","C"]

    Step-by-Step Solution

    Insight: an "impossible combination" item over a non-empty domain is a hunt for a statement and its negation being asserted together, or a logical consequence being violated. The key boundaries are: (1) over a non-empty domain, and (2) .

    Exam route: convert every claim into plain language, then look for a clash or a violated consequence.

    Learning route:

    Step 1: Option A — "every element satisfies " and "no element satisfies ". Since , the first claim forces the second to be true. They cannot both hold. <b>Impossible.</b>

    Step 2: Option B — "some element satisfies both and " and "not every element satisfies ". Take with true, false. Both claims hold. <b>Possible.</b>

    Step 3: Option C — "every implies ", "some element satisfies ", and "no element satisfies ". Let be a witness for . Then is true. By the first claim, , so is true. But the third claim says is false, i.e., no element satisfies . Contradiction. <b>Impossible.</b>

    Step 4: Option D — "some element satisfies or ", "not every element satisfies ", and "not every element satisfies ". Take with true, true, false, false. All three claims hold. <b>Possible.</b>

    Answer: A and C.

    Tempting wrong path: a student thinks B is impossible because "if some element satisfies both, then every element must satisfy ", misreading "some" as "all". This leads to ticking B as impossible. The break is Step 2 — a mixed domain satisfies both claims. Another student thinks D is impossible because "if some element satisfies , then either every element satisfies or every element satisfies ", misreading the existential as universal. The break is Step 4 — a mixed domain satisfies all three claims.

    Generalisation: over a non-empty domain, strictly implies . Also, strictly implies . Any scenario violating these is impossible.

    Verification: re-check C by instantiating. gives a witness with true. gives , so is true. But is false, meaning no element satisfies . Contradiction. All other options were certified by explicit non-empty domains.

    Question 8 · Engineering Mathematics MCQ

    Let be a domain with exactly $4$ elements and let be a binary predicate on . Treat as the set of ordered pairs for which is true. For a formula , let denote the smallest number of ordered pairs that this set must contain for to be TRUE. Which one of the following statements is TRUE?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: is an AND over elements and is an OR, and the quantifier order decides the shape of the relation. needs one pair for each . needs a full column for one fixed .

    Exam route: Find for each formula on a 4-element domain.

    • needs one pair, so .
    • needs every pair, so .
    • needs one fixed related to all 4 values of , so .
    • needs each of the 4 values of to have a partner, which takes 4 different pairs, so .

    Only the last statement is true.

    Learning route: This is an estimation of "how many ordered pairs must contain", recognisable from the definition of . Read the quantifiers from left to right.

    Step 1: says every has some . Pairs for different are different (their first coordinate differs), so at least 4 pairs are needed, and 4 pairs suffice.

    Step 2: Check the other three statements against their true values 1, 16 and 4. Their claimed values 4, 8 and 1 do not match.

    Answer: .

    Tempting wrong path 1: Read as "each has a " and claim 4 (first option). This breaks because needs only one pair.

    Tempting wrong path 2: For take "one pair per plus one pair per " and claim (second option). This breaks because every one of the pairs is required.

    Tempting wrong path 3: Read as "there exists a pair" and claim 1 (third option). This breaks because the single must be related to all four values.

    Generalisation: The order of nested quantifiers decides how many witnesses are needed. allows a different for each , and needs one that works for all .

    Verification: Take . It makes true using exactly 4 pairs. Any set of 3 pairs leaves some without a partner, so 3 is not enough.

    Question 9 · Engineering Mathematics MSQ
    Consider the premise . Match each proof scenario in List I with its correct description in List II.

    List I:
    1. Let be arbitrary. Then . Let be such that .
    2. Let be such that . Let be arbitrary. Then .
    3. Let be arbitrary. Let be arbitrary. Then .
    4. From : let be such that . Let be arbitrary. Then .

    List II:
    (i) Correct instantiation of the given premise
    (ii) Incorrect — locks in a single witness for all
    (iii) Incorrect — treats the existential witness as arbitrary
    (iv) Correct instantiation, but of a different premise

    Which of the following matchings is/are correct?
    1. A.

      1 - (i)

    2. B.

      2 - (ii)

    3. C.

      3 - (iii)

    4. D.

      4 - (iv)

    Correct Answer:

    ["A","B","C","D"]

    Step-by-Step Solution

    Insight: this is a "match instantiation scenarios with correctness" question. The pivot is the instantiation order trap: for , you must instantiate the universal first (let be arbitrary), then the existential (let be a specific witness that can depend on ).

    Exam route: check each scenario for the correct order and the correct treatment of the witness.

    Learning route:

    Step 1: Scenario 1 — "Let be arbitrary. Then . Let be such that ." This instantiates first (arbitrary ), then (specific that can depend on ). This is the correct order for . Matches (i).

    Step 2: Scenario 2 — "Let be such that . Let be arbitrary." This instantiates first, locking in a single for all . This incorrectly changes the meaning to . Matches (ii).

    Step 3: Scenario 3 — "Let be arbitrary. Let be arbitrary." This treats the existential witness as arbitrary, which is wrong. The witness should be specific (though it can depend on ). Matches (iii).

    Step 4: Scenario 4 — "From : let be such that . Let be arbitrary." This is the correct instantiation order for , not for . Matches (iv).

    Step 5: All four matchings are correct.

    Answer: A, B, C, and D.

    Tempting wrong path: a student thinks scenario 3 is correct because "both and are arbitrary, so it should work for all and ", missing that the existential witness must be specific, not arbitrary. This leads to not ticking C. Another student thinks scenario 4 is incorrect because "it doesn't match the given premise", missing that the question asks for the correct description, not whether it matches. This leads to not ticking D. The break for scenario 3 is Step 3 — the existential witness must be specific. The break for scenario 4 is Step 4 — it is correct for a different premise.

    Generalisation: for , instantiate first (arbitrary), then (specific witness that can depend on the arbitrary element). Treating the witness as arbitrary or instantiating in the wrong order are both errors.

    Verification: scenario 1 follows the golden rule: before . Scenario 2 violates it by instantiating first. Scenario 3 violates the constraint that the existential witness must be specific. Scenario 4 is correct but for , not the given premise.

    Question 10 · Engineering Mathematics MCQ

    Consider the statement: "The program terminates if the input is valid."

    Let represent "The input is valid" and represent "The program terminates."

    Which of the following is the correct propositional logic translation?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: The word "if" introduces the hypothesis (antecedent) of the implication.

    Step 1: Identify the hypothesis and conclusion. The statement is "The program terminates if the input is valid." This can be rewritten in standard form as "If the input is valid, then the program terminates."

    Step 2: Assign variables. : "The input is valid" (hypothesis). : "The program terminates" (conclusion).

    Step 3: Translate to logic. "If then " translates to .

    Answer: (Option A).

    More practice questions in this unit