Which of the following statements is/are TRUE for undirected graphs? P: Number of odd degree vertices is even. Q: Sum of degrees of all vertices is even.
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2013 · Q25
Time
Select one answerSingle correct
Solution
Official answer: C) Both P and Q
Discrete MathematicsAccording to the Handshaking Lemma for any undirected graph :
Statement Q: Since the sum equals , which is twice the number of edges, the sum of degrees of all vertices is always an even number. Thus, Q is TRUE.
Statement P: Partition the vertices into those with even degree () and odd degree ():
Since the total sum () is even and the sum of even numbers is even, the sum must also be even. A sum of odd integers is even if and only if the number of terms is even. Therefore, the number of odd-degree vertices must be even. Thus, P is TRUE.
Since both statements P and Q are true, the correct option is (C).
Try the question first, then check your work.
Examiner trap
Recall the Handshaking Lemma: the sum of degrees of all vertices is equal to twice the number of edges.
This Discrete Mathematics previous year question is Q25 of the GATE CSE 2013 paper. Find more GATE CSE PYQs on Discrete Mathematics in Engineering Mathematics, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Discrete Mathematics PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Discrete Mathematics has 50 GATE CSE PYQs across 23 papers from 2011 to 2026. 18 of them are 1-mark MCQs like this one, and GATE CSE 2013 has 4.
How GATE tests Discrete MathematicsIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.