chapter
    Logic and Proof Techniques Practice Questions for GATE CS

    Solve 109+ 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

    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?

    Question 7
    Level 1: Warm-up

    Let be "The system crashes" and be "The power is stable."

    Translate the statement: "The system crashes unless the power is stable."

    Question 8
    Level 1: Warm-up

    Let be "You score above 90%" and be "You get an A grade."

    Which of the following represents " is a sufficient condition for "?

    Question 9
    Level 1: Warm-up

    A university rule states: "A student is eligible for the scholarship only if they maintain a GPA of 3.5 or higher."

    Let be "Student is eligible for the scholarship" and be "Student maintains a GPA of 3.5 or higher."

    What is the correct logical translation?

    Question 10
    Level 1: Warm-up

    Consider the following two statements:

    Assertion (A): To simplify , one must expand it to .

    Reason (R): In logic, OR distributes over AND, whereas in standard algebra, addition does not distribute over multiplication.

    Which of the following options is correct?

    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.

    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 109+ 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 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).

    Question 7 · Engineering Mathematics MCQ

    Let be "The system crashes" and be "The power is stable."

    Translate the statement: "The system crashes unless the power is stable."

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: "A unless B" translates to "If not B, then A", which is .

    Step 1: Identify A and B. A: "The system crashes" (). B: "The power is stable" ().

    Step 2: Apply the "unless" rule. "A unless B" becomes .

    Step 3: Substitute variables. .

    Answer: (Option B).

    Question 8 · Engineering Mathematics MCQ

    Let be "You score above 90%" and be "You get an A grade."

    Which of the following represents " is a sufficient condition for "?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: If is sufficient for , then having is enough to guarantee . This means .

    Step 1: Identify the sufficient condition. is sufficient for .

    Step 2: Apply the rule. The sufficient condition is the hypothesis, so it goes on the left side of the implication arrow. Thus, .

    Answer: (Option A).

    Question 9 · Engineering Mathematics MCQ

    A university rule states: "A student is eligible for the scholarship only if they maintain a GPA of 3.5 or higher."

    Let be "Student is eligible for the scholarship" and be "Student maintains a GPA of 3.5 or higher."

    What is the correct logical translation?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: The phrase "only if" introduces the necessary condition, and the arrow points towards it. "A only if B" translates to .

    Step 1: Identify A and B. A: "Student is eligible" (). B: "Maintains GPA 3.5" ().

    Step 2: Apply the "only if" rule. only if translates to .

    Answer: (Option B).

    Question 10 · Engineering Mathematics MCQ

    Consider the following two statements:

    Assertion (A): To simplify , one must expand it to .

    Reason (R): In logic, OR distributes over AND, whereas in standard algebra, addition does not distribute over multiplication.

    Which of the following options is correct?

    1. A.

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

    2. B.

      Both A and R are true, and R is 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:

    B

    Step-by-Step Solution

    Key idea: In propositional logic, both AND and OR distribute over each other, unlike standard algebra.

    Step 1: Evaluate Assertion (A). The expression requires distributing the OR over the AND. This yields . Thus, A is true.

    Step 2: Evaluate Reason (R). In logic, OR distributes over AND (). In standard algebra, addition does NOT distribute over multiplication (). Thus, R is true.

    Step 3: Determine the relationship. R correctly explains why A is true, highlighting the unique distribution property of logic compared to algebra.

    Answer: Both A and R are true, and R is the correct explanation of A (Option B).

    More practice questions in this unit