GATE CS Discrete Mathematics PYQ with Solutions

Also searched as: GATE DM PYQ · GATE Discrete Maths PYQ · GATE Graph Theory PYQ

All 43 Discrete Mathematics questions from every GATE Computer Science (CS/CSE) paper from 2021 to 2026, both sets where there were two, with the official answer key and a step-by-step solution. Discrete Mathematics carries about 6.5 marks per paper on average. Questions are grouped chapter-wise, newest paper first.

Discrete Mathematics — average marks per paper
202620252024202320222021
3.54.57.512115.5

Discrete Mathematics: Graph Theory — GATE CS PYQ (13)

  1. GATE CS 2026 Set 1 · Q47Discrete Mathematicsmsq2 marks
    Let be a simple, undirected graph. A vertex cover of is a subset such that for every , or . Let the size of the smallest vertex cover in be . Let be any vertex cover of size . For a vertex , which of the following constraints will always ensure that ?
    • A.
      The degree of is at least
      ✓
    • B.
      The vertex is on a path of length
    • C.
      The vertex is on a cycle of length
    • D.
      The vertex is a part of a clique of size

    Answer: A

    Solution

    Answer: A (A) True. If , every edge at must be covered by its other end, so all neighbours are in . Then , a contradiction. (B) False. Path 1–2–3–4–5: with . Vertex 1 lies on the path 1-2-3-4 of length , yet . (C) False. Triangle {1, 2, 3}: with . Vertex 3 lies on a cycle of length , yet . (D) False. In the same triangle, {1, 3} is a clique of size containing 3, and . A clique needs only all but one of its vertices in a cover.
    Open GATE CS 2026 Set 1 Q47 · discuss this question →
  2. GATE CS 2026 Set 1 · Q57Discrete Mathematicsnat2 marks
    Let be an undirected graph, which is a path on 8 vertices. The number of matchings in is ______. (answer in integer)

    Answer: 34

    Solution

    Answer: 34 (the empty matching counts) Let be the number of matchings in a path on vertices. Look at the last vertex: either it is unmatched, giving , or it is matched with its neighbour, giving . So , with and .
    n    | 1 | 2 | 3 | 4 | 5 | 6  | 7  | 8
    -----+---+---+---+---+---+----+----+---
    m(n) | 1 | 2 | 3 | 5 | 8 | 13 | 21 | 34
    These are Fibonacci numbers.
    Open GATE CS 2026 Set 1 Q57 · discuss this question →
  3. GATE CS 2024 Set 1 · Q34Discrete Mathematicsnat1 mark
    The number of spanning trees in a complete graph of 4 vertices (A,B,C,D) is _________

    Answer: 16

    Solution

    Answer: 16 By Cayley's formula, the number of labelled spanning trees of is . For : .
    Open GATE CS 2024 Set 1 Q34 · discuss this question →
  4. GATE CS 2024 Set 1 · Q51Discrete Mathematicsmsq2 marks
    has vertices and chromatic number . Which statements are always TRUE?
    • A.
      contains a complete subgraph with vertices
    • B.
      contains an independent set of size at least
      ✓
    • C.
      contains at least edges
      ✓
    • D.
      contains a vertex of degree at least ... (see note)

    Answer: B, C

    Solution

    Answer: (B) and (C) - (B) A proper -colouring partitions vertices into colour classes (independent sets); by pigeonhole one class has vertices. TRUE. - (C) In a minimal -colouring, every pair of colour classes must have at least one edge between them (else the two classes could merge, reducing colours). That gives edges. TRUE. - (A) FALSE: high chromatic number does not force a (e.g. triangle-free graphs with large ). - (D) The last option is not guaranteed in general.
    Open GATE CS 2024 Set 1 Q51 · discuss this question →
  5. GATE CS 2024 Set 2 · Q51Discrete Mathematicsmsq2 marks
    is connected with positive integer edge weights, and every spanning tree has even weight. Which statements are TRUE for every such ?
    • A.
      All edges have even weight
    • B.
      All edges have even weight OR all edges have odd weight
    • C.
      In each cycle C, all edges have even weight
    • D.
      In each cycle C, either all edges in C are even OR all are odd
      ✓

    Answer: D

    Solution

    Answer: (D) If all spanning trees have the same parity (even), then swapping one tree edge for a non-tree edge on its fundamental cycle must not change the parity, which forces the two swapped edges to have the same parity. Propagating this around each cycle means every cycle's edges share one parity -> (D). (A),(B),(C) are too strong: edges in different cycles may have different parities as long as within each cycle they match.
    Open GATE CS 2024 Set 2 Q51 · discuss this question →
  6. GATE CS 2024 Set 2 · Q60Discrete Mathematicsnat2 marks
    The chromatic number of the shown graph (8 vertices drawn as an octagon with diagonals) is _________
    GATE CS 2024 Set 2 Question 60 figure

    Answer: 2

    Solution

    Answer: 2 The graph is bipartite — it is the complete bipartite graph (each vertex on one side joins every vertex on the other). A bipartite graph with at least one edge has chromatic number exactly 2 (it contains no odd cycle).
    Open GATE CS 2024 Set 2 Q60 · discuss this question →
  7. GATE CS 2023 · Q55Discrete Mathematicsmsq2 marks
    Greedy coloring assigns each the smallest color not used by its already-colored neighbours. is the maximum degree. Which statements are TRUE?
    • A.
      This procedure results in a proper vertex coloring.
      ✓
    • B.
      The number of colors used is at most Delta(G)+1.
      ✓
    • C.
      The number of colors used is at most Delta(G).
    • D.
      The number of colors used equals the chromatic number.

    Answer: A, B

    Solution

    Answer: (A) and (B) Greedy coloring never gives two adjacent vertices the same color -> proper coloring (A). A vertex has at most neighbours, so among colors at least one is free -> at most colors (B). It may use more than and more than the chromatic number (greedy is not optimal), so (C),(D) false.
    Open GATE CS 2023 Q55 · discuss this question →
  8. GATE CS 2023 · Q56Discrete Mathematicsnat2 marks
    , has vertex set ; is an edge iff and ( or ). is the set of BFS visit orderings from . The cardinality of is __________

    Answer: 5040

    Solution

    Answer: 5040 Starting BFS from (which is a subset of every other set, so is adjacent to all 7 other vertices), all 7 remaining vertices are at BFS level 1 and can be visited in any order. The number of orderings is .
    Open GATE CS 2023 Q56 · discuss this question →
  9. GATE CS 2022 · Q30Discrete Mathematicsnat1 mark
    Consider a simple undirected graph of 10 vertices. If the graph is disconnected, the maximum number of edges it can have is __________.

    Answer: 36

    Solution

    Answer: 36 To maximize edges while staying disconnected, make one vertex isolated and put the other 9 in a complete graph : edges .
    Open GATE CS 2022 Q30 · discuss this question →
  10. GATE CS 2022 · Q37Discrete Mathematicsmcq2 marks
    For a simple undirected unweighted graph with adjacency matrix , the number of 3-cycles (triangles) equals the trace of
    • A.
    • B.
      divided by 2
    • C.
      divided by 3
    • D.
      divided by 6
      ✓

    Answer: D

    Solution

    Answer: (D) divided by 6 counts closed walks of length 3 from vertex , i.e. (triangles through ). Summing over , counts each triangle times (3 starting vertices 2 directions). So the number of triangles
    Open GATE CS 2022 Q37 · discuss this question →
  11. GATE CS 2022 · Q50Discrete Mathematicsmsq2 marks
    The Petersen graph is shown. Which statements are TRUE?
    GATE CS 2022 Question 50 figure
    • A.
      The chromatic number of the graph is 3.
      ✓
    • B.
      The graph has a Hamiltonian path.
      ✓
    • C.
      The second graph shown is isomorphic to the Petersen graph.
      ✓
    • D.
      The size of the largest independent set is 3.

    Answer: A, B, C

    Solution

    Answer: (A), (B) and (C) The Petersen graph has chromatic number 3 (A) and a Hamiltonian path though no Hamiltonian cycle (B); the second drawing is a standard isomorphic redrawing of it (C). Its maximum independent set has size 4, not 3, so (D) is false.
    Open GATE CS 2022 Q50 · discuss this question →
  12. GATE CS 2022 · Q52Discrete Mathematicsmsq2 marks
    Which properties hold for the adjacency matrix of a simple undirected unweighted graph with vertices?
    • A.
      The diagonal entries of are the degrees of the vertices.
      ✓
    • B.
      If the graph is connected, then no entry of can be zero.
    • C.
      If the sum of all elements of is at most , then the graph must be acyclic.
    • D.
      If there is at least a 1 in each row and column of , then the graph must be connected.

    Answer: A

    Solution

    Answer: (A) - (A) - the diagonal of gives the degrees. TRUE. - (B) FALSE: counts walks of length exactly ; in a connected bipartite graph some vertex pairs have no walk of that exact length (parity), so entries of can be zero. - (C) FALSE: sum means at most edges, but the graph can still contain a cycle (in one component while another part is disconnected). - (D) FALSE: a 1 in every row and column only rules out isolated vertices; the graph can still be disconnected (e.g. two separate edges).
    Open GATE CS 2022 Q52 · discuss this question →
  13. GATE CS 2021 Set 1 · Q26Discrete Mathematicsnat1 mark
    In an undirected connected planar graph , there are eight vertices and five faces. The number of edges in is ______.

    Answer: 11

    Solution

    Euler's formula: .
    Open GATE CS 2021 Set 1 Q26 · discuss this question →

Discrete Mathematics: Combinatorics — GATE CS PYQ (12)

  1. GATE CS 2026 Set 1 · Q12Discrete Mathematicsmcq1 mark
    Consider matrices with their elements from . The number of such matrices with even number of 1s in every row and every column is
    • A.
      512
      ✓
    • B.
      1025
    • C.
      1023
    • D.
      255

    Answer: A

    Solution

    Answer: (A) 512 Fill the top-left block freely: ways. Then: • the last entry of each of the first three rows is forced, to make that row's parity even; • the last entry of each of the first three columns is forced the same way; • the bottom-right corner is forced too, and both its row and its column agree on it, because the total number of 1s in the first three rows equals the total in the first three columns (mod 2). Count .
    Open GATE CS 2026 Set 1 Q12 · discuss this question →
  2. GATE CS 2025 Set 1 · Q30Discrete Mathematicsnat1 mark
    Let be the set of all ternary strings defined over the alphabet . Consider all strings in that contain at least one occurrence of two consecutive symbols, that is, "aa", "bb" or "cc". The number of such strings of length 5 that are possible is _______. (Answer in integer)

    Answer: 195

    Solution

    Answer: 195 Use complementary counting. - Total strings of length 5: . - Strings with no two consecutive equal symbols: the first symbol has choices, each later symbol has choices (anything except the previous one): . Strings with at least one "aa"/"bb"/"cc"
    Open GATE CS 2025 Set 1 Q30 · discuss this question →
  3. GATE CS 2024 Set 1 · Q14Discrete Mathematicsmcq1 mark
    A permutation is sampled uniformly from all permutations of , . Let be the event that 1 occurs before 2, and that 3 occurs before 4. Which statement is TRUE?
    • A.
      and are mutually exclusive
    • B.
      and are independent
      ✓
    • C.
      Either or must occur
    • D.
      is more likely than

    Answer: B

    Solution

    Answer: (B) The events and are independent by symmetry. The relative order of is independent of the relative order of (disjoint pairs), so -> independent. They are not mutually exclusive, both can fail, and they are equally likely.
    Open GATE CS 2024 Set 1 Q14 · discuss this question →
  4. GATE CS 2024 Set 1 · Q52Discrete Mathematicsmsq2 marks
    Operators and (positive integers). Which statements is/are TRUE?
    • A.
      is associative
    • B.
      is associative
      ✓
    • C.
      distributes over
    • D.
      distributes over
      ✓

    Answer: B, D

    Solution

    Answer: (B) and (D) - (B) is ordinary multiplication -> associative. TRUE. - (D) . TRUE. - (A) is not associative: but . FALSE. - (C) , while -> not equal. FALSE.
    Open GATE CS 2024 Set 1 Q52 · discuss this question →
  5. GATE CS 2024 Set 2 · Q34Discrete Mathematicsnat1 mark
    Partial order on . The number of total orders on containing is __________

    Answer: 5

    Solution

    Answer: 5 We need linear extensions respecting , , . Enumerating permutations consistent with these constraints:
    3 1 2 4,  3 1 4 2,  1 3 2 4,  1 3 4 2,  3 4 1 2
    There are exactly 5 such total orders.
    Open GATE CS 2024 Set 2 Q34 · discuss this question →
  6. GATE CS 2023 · Q15Discrete Mathematicsmcq1 mark
    The Lucas sequence for , with and . Which is TRUE?
    • A.
      ✓
    • B.
    • C.
    • D.

    Answer: A

    Solution

    Answer: (A) The characteristic equation has roots and . The Lucas numbers have the closed form . Checking: and . Matches option (A).
    Open GATE CS 2023 Q15 · discuss this question →
  7. GATE CS 2023 · Q48Discrete Mathematicsmcq2 marks
    , with , . A permutation separates A from B if all of A precede all of B, or all of B precede all of A. How many permutations of U separate A from B?
    • A.
    • B.
    • C.
    • D.
      ✓

    Answer: D

    Solution

    Answer: (D) Choose the positions for : ways; arrange the other elements in the rest: . Within the chosen ordered slots, put the -block before the -block (or vice versa): factor ; order the elements of () and of (). Total .
    Open GATE CS 2023 Q48 · discuss this question →
  8. GATE CS 2022 · Q32Discrete Mathematicsnat1 mark
    The number of arrangements of six identical balls in three identical bins is __________.

    Answer: 7

    Solution

    Answer: 7 Placing 6 identical balls in 3 identical bins counts partitions of 6 into at most 3 parts:
    6 | 5+1 | 4+2 | 4+1+1 | 3+3 | 3+2+1 | 2+2+2
    That is 7 arrangements.
    Open GATE CS 2022 Q32 · discuss this question →
  9. GATE CS 2022 · Q36Discrete Mathematicsmcq2 marks
    Which is the closed form of the generating function of where if is odd, and otherwise?
    • A.
      ✓
    • B.
    • C.
    • D.

    Answer: A

    Solution

    Answer: (A) The sequence is . Split into the even-index part (all 1's) and odd-index part ():
    Checking coefficients: all match option (A).
    Open GATE CS 2022 Q36 · discuss this question →
  10. GATE CS 2021 Set 1 · Q29Discrete Mathematicsnat1 mark
    There are 6 jobs with distinct difficulty levels, and 3 computers with distinct processing speeds. Each job is assigned to a computer such that: - The fastest computer gets the toughest job and the slowest computer gets the easiest job. - Every computer gets at least one job. The number of ways in which this can be done is ______.

    Answer: 65

    Solution

    Fix the toughest job to the fastest computer and the easiest to the slowest. The remaining 4 jobs go to 3 computers (with the "at least one each" condition already handled), giving 65 valid assignments.
    Open GATE CS 2021 Set 1 Q29 · discuss this question →
  11. GATE CS 2021 Set 2 · Q21Discrete Mathematicsmsq1 mark
    Let be the set of all matrices whose entries are from the set , and let be the set of all functions from the set to the set . Which of the following choices is/are correct?
    • A.
      There does not exist a bijection from to .
    • B.
      There exists a surjection from to .
      ✓
    • C.
      There exists a bijection from to .
      ✓
    • D.
      There does not exist an injection from to .

    Answer: B, C

    Solution

    Both sets have cardinality (: three choices for each of entries; : three choices for each of inputs). Equal finite cardinalities give a bijection (C) and hence also a surjection (B).
    Open GATE CS 2021 Set 2 Q21 · discuss this question →
  12. GATE CS 2021 Set 2 · Q60Discrete Mathematicsnat2 marks
    Let be a set consisting of 10 elements. The number of tuples of the form such that and are subsets of , and is ______.

    Answer: 59049

    Solution

    For each element there are three mutually exclusive possibilities: in neither nor , in only, or in both and (it cannot be in but not ). So the count is .
    Open GATE CS 2021 Set 2 Q60 · discuss this question →

Discrete Mathematics: Mathematical Logic — GATE CS PYQ (8)

  1. GATE CS 2026 Set 2 · Q11Discrete Mathematicsmcq1 mark
    For two different persons and , the predicate denotes that knows . Consider the following statement. There is a person who does not know anyone else, but that person is known by everyone else. Which one of the following expressions represents the above statement?
    • A.
      ✓
    • B.
    • C.
    • D.

    Answer: A

    Solution

    Answer: (A) We need one special person (so ) such that for every other person (so ): knows () but does not know (). This is exactly option (A).
    Open GATE CS 2026 Set 2 Q11 · discuss this question →
  2. GATE CS 2025 Set 1 · Q48Discrete Mathematicsmsq2 marks
    Which of the following predicate logic formulae is/are CORRECT representation(s) of: "Everyone has exactly one mother"? Predicates: means " is the mother of "; means " and are not equal".
    • A.
    • B.
      ✓
    • C.
    • D.
      ✓

    Answer: B, D

    Solution

    Answer: (B) and (D) "Exactly one mother" = there exists a mother, and no other individual is also a mother. - (B) a mother , and every is not a mother → existence + uniqueness. True. - (D) a mother , and there is no that is a mother → same meaning. True. - (A) merely says some is a mother and some is not a mother — does not enforce uniqueness. False. - (C) can be taken equal to (since means ), making it trivially true; it enforces neither existence nor uniqueness. False.
    Open GATE CS 2025 Set 1 Q48 · discuss this question →
  3. GATE CS 2025 Set 2 · Q15Discrete Mathematicsmcq1 mark
    Let be an arbitrary predicate over the domain of natural numbers. Which ONE of the following statements is TRUE?
    • A.
      ✓
    • B.
    • C.
    • D.

    Answer: A

    Solution

    Answer: (A) This is the principle of mathematical induction over the naturals: a base case at plus the step proves for all naturals. - (B),(C) step downward (), which does not reach larger naturals. - (D) starts at and steps upward, so it proves only for , not all naturals.
    Open GATE CS 2025 Set 2 Q15 · discuss this question →
  4. GATE CS 2025 Set 2 · Q42Discrete Mathematicsmsq2 marks
    Let be the set of all functions from to . Define iff for all (where ). Which of the following statement(s) is/are TRUE?
    • A.
      is a symmetric relation
    • B.
      is a partial order
      ✓
    • C.
      is a lattice
      ✓
    • D.
      is an equivalence relation

    Answer: B, C

    Solution

    Answer: (B) and (C) is the pointwise order — equivalently the subset order on the bit-vectors (the Boolean lattice ). - It is reflexive, antisymmetric and transitive → a partial order. (B) True. - Every pair has a meet (pointwise AND) and a join (pointwise OR) in → a lattice. (C) True. - It is antisymmetric, not symmetric, so not symmetric (A) and not an equivalence relation (D).
    Open GATE CS 2025 Set 2 Q42 · discuss this question →
  5. GATE CS 2024 Set 2 · Q12Discrete Mathematicsmcq1 mark
    : Fail grade can be given. : Student scores more than 50%. Statement: "Fail grade cannot be given when student scores more than 50% marks." Correct representation?
    • A.
      ✓
    • B.
    • C.
    • D.

    Answer: A

    Solution

    Answer: (A) "When the student scores more than 50% (), a fail grade cannot be given ()" is exactly .
    Open GATE CS 2024 Set 2 Q12 · discuss this question →
  6. GATE CS 2023 · Q26Discrete Mathematicsmsq1 mark
    Geetha's conjecture is . Which option(s) would imply it?
    • A.
    • B.
      ✓
    • C.
      ✓
    • D.

    Answer: B, C

    Solution

    Answer: (B) and (C) - (B) makes true for every , hence the conjecture holds. Implies. - (C) : a single works for all , so in particular each has such a . Implies. - (A),(D) only assert something for SOME , which does not establish the universally-quantified conjecture.
    Open GATE CS 2023 Q26 · discuss this question →
  7. GATE CS 2021 Set 1 · Q17Discrete Mathematicsmcq1 mark
    Let and be two propositions. Consider the following two formulae in propositional logic.
    Which one of the following choices is correct?
    • A.
      Both and are tautologies.
    • B.
      is a tautology but is not a tautology.
      ✓
    • C.
      is not a tautology but is a tautology.
    • D.
      Neither nor is a tautology.

    Answer: B

    Solution

    . So , which is always true — a tautology. fails when is true and is true, so is not a tautology.
    Open GATE CS 2021 Set 1 Q17 · discuss this question →
  8. GATE CS 2021 Set 2 · Q25Discrete Mathematicsmsq1 mark
    Choose the correct choice(s) regarding the following propositional logic assertion :
    • A.
      is neither a tautology nor a contradiction.
    • B.
      is a tautology.
      ✓
    • C.
      is a contradiction.
    • D.
      The antecedent of is logically equivalent to the consequent of .
      ✓

    Answer: B, D

    Solution

    When is true, both and reduce to ; when is false, both are true. So the antecedent and consequent are logically equivalent (D), making of the form , a tautology (B).
    Open GATE CS 2021 Set 2 Q25 · discuss this question →

Discrete Mathematics: Set Theory — GATE CS PYQ (5)

  1. GATE CS 2026 Set 2 · Q26Discrete Mathematicsmsq1 mark
    Let be a binary relation on the set , where if the product of and is the square of an integer. Which of the following properties is/are satisfied by ?
    • A.
      Reflexive
      ✓
    • B.
      Symmetric
      ✓
    • C.
      Transitive
      ✓
    • D.
      Antisymmetric

    Answer: A, B, C

    Solution

    Answer: (A), (B), (C) is a perfect square. - Reflexive: is a square. ✓ - Symmetric: . ✓ - Transitive: if and are squares then is a square, so is a square. ✓ - Antisymmetric: and are both in with , so not antisymmetric. ✗
    Open GATE CS 2026 Set 2 Q26 · discuss this question →
  2. GATE CS 2025 Set 1 · Q17Discrete Mathematicsmcq1 mark
    is a function from to , is a function from to , and their composition defined as is a mapping from to . If and are onto (surjective) functions, which ONE of the following is TRUE about the function ?
    • A.
      must be an onto (surjective) function.
    • B.
      must be a one-to-one (injective) function.
    • C.
      must be a bijective function, that is, both one-to-one and onto.
    • D.
      is not required to be a one-to-one or onto function.
      ✓

    Answer: D

    Solution

    Answer: (D) is not required to be one-to-one or onto. If is onto then must be onto — but nothing forces to be onto or injective. Counterexample: , , . Let (not onto , trivially injective but need not be) and . Then is onto and is onto , yet is not onto . One can likewise make non-injective. So need not be injective or surjective.
    Open GATE CS 2025 Set 1 Q17 · discuss this question →
  3. GATE CS 2024 Set 1 · Q32Discrete Mathematicsnat1 mark
    are non-empty finite sets with bijections (i) from to and (ii) from to . The number of possible values of is __________

    Answer: 2

    Solution

    Answer: 2 Bijection (i) gives . Bijection (ii) gives , i.e. . Since ranges from (when ) to (when disjoint), we need , i.e. . - : , take so . Works. - : , take disjoint so . Works. So -> 2 possible values.
    Open GATE CS 2024 Set 1 Q32 · discuss this question →
  4. GATE CS 2023 · Q49Discrete Mathematicsmsq2 marks
    is onto. Define if , with equivalence classes . Define by . Which statements are TRUE?
    • A.
      F is NOT well-defined.
    • B.
      F is an onto (surjective) function.
      ✓
    • C.
      F is a one-to-one (injective) function.
      ✓
    • D.
      F is a bijective function.
      ✓

    Answer: B, C, D

    Solution

    Answer: (B), (C) and (D) is well-defined (any two representatives of a class map to the same -value) -> (A) false. is onto because is onto (B). is injective: distinct classes have distinct -values by construction (C). Being both injective and surjective, is a bijection (D).
    Open GATE CS 2023 Q49 · discuss this question →
  5. GATE CS 2021 Set 1 · Q53Discrete Mathematicsmsq2 marks
    A relation is said to be *circular* if and together imply . Which of the following options is/are correct?
    • A.
      If a relation is reflexive and symmetric, then is an equivalence relation.
    • B.
      If a relation is circular and symmetric, then is an equivalence relation.
    • C.
      If a relation is reflexive and circular, then is an equivalence relation.
      ✓
    • D.
      If a relation is transitive and circular, then is an equivalence relation.

    Answer: C

    Solution

    A relation is an equivalence relation iff it is reflexive and circular (reflexive + circular implies symmetric and transitive), so (C) is correct. Reflexive+symmetric need not be transitive (A false); the others do not guarantee all three properties.
    Open GATE CS 2021 Set 1 Q53 · discuss this question →

Discrete Mathematics: Group Theory — GATE CS PYQ (5)

  1. GATE CS 2025 Set 1 · Q49Discrete Mathematicsmsq2 marks
    is the set of non-negative integers. Let be the set of functions from to itself. For , define for every . Which of the following is/are CORRECT about the structure ?
    • A.
      is an Abelian group.
    • B.
      is an Abelian monoid.
      ✓
    • C.
      is a non-Abelian group.
    • D.
      is a non-Abelian monoid.

    Answer: B

    Solution

    Answer: (B) an Abelian monoid The operation is pointwise addition of functions. - Closure & associativity: inherited from integer addition. ✓ - Identity: the zero function satisfies , and . ✓ → it is a monoid. - Commutative: → Abelian. ✓ - Inverses: an inverse of would need , but negative values are not in (non-negative integers). So only has an inverse → not a group. Hence is an Abelian monoid, but not a group.
    Open GATE CS 2025 Set 1 Q49 · discuss this question →
  2. GATE CS 2024 Set 2 · Q63Discrete Mathematicsnat2 marks
    under addition mod . The number of elements in that are their own inverses is ________

    Answer: 4

    Solution

    Answer: 4 An element is its own inverse iff in the respective groups. - : for -> 2 solutions. - : -> 1 solution. - : -> 2 solutions. Total .
    Open GATE CS 2024 Set 2 Q63 · discuss this question →
  3. GATE CS 2023 · Q51Discrete Mathematicsmsq2 marks
    is a set, its powerset, with operation . . Which statements are correct?
    • A.
      H is a group.
      ✓
    • B.
      Every element has an inverse, but H is NOT a group.
    • C.
      For every A, the inverse of A is the complement of A.
    • D.
      For every A, the inverse of A is A.
      ✓

    Answer: A, D

    Solution

    Answer: (A) and (D) (symmetric difference) is associative and commutative, the identity is (), and each is its own inverse since . So is a group (A), and the inverse of is (D), not its complement (C).
    Open GATE CS 2023 Q51 · discuss this question →
  4. GATE CS 2022 · Q27Discrete Mathematicsmsq1 mark
    Which statements are TRUE for a group ?
    • A.
      If for all , then is commutative.
      ✓
    • B.
      If for all , then is commutative.
      ✓
    • C.
      If the order of is 2, then is commutative.
      ✓
    • D.
      If is commutative, then a subgroup of need not be commutative.

    Answer: A, B, C

    Solution

    Answer: (A), (B) and (C) - (A) -> abelian. True. - (B) means every element is its own inverse; then -> abelian. True. - (C) Any group of order 2 is cyclic, hence abelian. True. - (D) False: every subgroup of an abelian group is abelian.
    Open GATE CS 2022 Q27 · discuss this question →
  5. GATE CS 2021 Set 1 · Q44Discrete Mathematicsmcq2 marks
    Let be a group of order 6, and be a subgroup of such that . Which one of the following options is correct?
    • A.
      Both and are always cyclic.
    • B.
      may not be cyclic, but is always cyclic.
      ✓
    • C.
      is always cyclic, but may not be cyclic.
    • D.
      Both and may not be cyclic.

    Answer: B

    Solution

    By Lagrange, , both prime, so is cyclic. of order 6 can be the non-abelian , which is not cyclic. Hence is always cyclic but may not be.
    Open GATE CS 2021 Set 1 Q44 · discuss this question →

Take a Discrete Mathematics chapter-wise test

Pick any chapters and attempt their PYQs with a timer in the GATE interface, with instant analysis — free.

Create free account →

More GATE CS PYQ subject-wise