All questions of Discrete & Engineering Mathematics for Computer Science Engineering (CSE) Exam

A fair coin is tossed 10 times. What is the probability that ONLY the first two tosses will yield heads? 
  • a)
  • b)
  • c)
  • d)
Correct answer is option 'C'. Can you explain this answer?

Rhea Reddy answered
Let A be the event that first toss is head  
And B be the event that second toss is head. 
By the given condition rest all 8 tosses should be tail
∴ The probability of getting head in first two cases 

The CORRECT formula for the sentence, "not all rainy days are cold” is
  • a)
  • b)
  • c)
  • d)
Correct answer is option 'B'. Can you explain this answer?

Sanvi Kapoor answered
 
 
In other words it says ``Some rainy days are not cold" 
Given statement is
¬∀d[R(d)→C(d)]
≡¬∀d[¬R(d)∨C(d)
≡∃d[R(d)∧¬C(d)]

Can you explain the answer of this question below:

Three companies X, Y and Z supply computers to a university. The percentage of computers supplied by them and the probability of those being defective are tabulated below  

Given that a computer is defective, the probability that it was supplied by Y is 

  • A:

    0. 1  

  • B:

    0.2  

  • C:

    0.3  

  • D:

    0.4 

The answer is d.

Kabir Verma answered
Probability of defective computer supplied by Y = 
(Case when Y produces defective)/(All cases of producing defective product)
Case when Y produces defective = (0.3)(0.02) = 0.006
All cases of producing defective product= (0.6x0.01)+(0.3x0.02)
(0.1x0.03)= 0.006+0.006+0.003=0.015
Probability = 0.006/0.015=0.4

A box contains 20 defective items and 80 non-defective items. If two items are selected at random without replacement, what will be the probability that both items are defective?  
  • a)
    1/5      
  • b)
    1/25  
  • c)
    20/99  
  • d)
    11/495 
Correct answer is option 'D'. Can you explain this answer?

Total number of items = 100

Number of defective items = 20

Number of Non-defective items = 80

Then the probability that both items are defective, when 2 items are selected at random is,

 ⇒ P= (20C2x80C0)/(100C2) = 19/495

Condition for monoid is __________
  • a)
    (a+e)=a
  • b)
    (a*e)=(a+e)
  • c)
    a=(a*(a+e)
  • d)
    (a*e) = (e*a) = a
Correct answer is option 'D'. Can you explain this answer?

Sudhir Patel answered
 A Semigroup (S,*) is defined as a monoid if there exists an element e in S such that (a*e) = (e*a) = a for all a in S. This element is called identity element of S w.r.t *.

If M is a square matrix with a zero determinant, which of the following assertion(S) is (are) correct?
S1: Each row of M can be represented as a linear combination of the other rows.
S2: Each column of M can be represented as a linear combination of the other columns.
S3: MX = O has a nontrivial solution.
S4: M has an inverse.
  • a)
    S3 and S2 only
  • b)
    S1 and S4 only
  • c)
    S1 and S3 only
  • d)
    S1, S2 and S3 only
Correct answer is option 'D'. Can you explain this answer?

S1 and S2:
Since M has zero determinant, its rank is not full i.e. if M is of size 3 x 3 , then its rank is not 3. So there is a linear combination of rows which evaluates to 0 i.e. k1R1 + k2R+...+knRn = 0 and there is a linear combination of columns which evaluates to 0 i.e.

Now any row Ri can be written as linear combination of other rows as:


Similar is the case for columns.
So S1 and S2 are true.

Two dices are rolled simultaneously. The probability that the sum of digits on the top surface of the two dices is even, is  
  • a)
    0.5  
  • b)
    0.25    
  • c)
    0.167  
  • d)
    0.125
Correct answer is option 'A'. Can you explain this answer?

Dipika Bose answered
Here sample space S= 6 × 6 = 36 
Total no. of way in which sum of digits on the top surface of the two dice is is  even is  18.  
∴ The require probability = 0.5

If three coins are tossed simultaneously, the probability of getting at least one head is  
  • a)
    1/8    
  • b)
    3/8    
  • c)
    1/2    
  • d)
    7/8 
Correct answer is option 'D'. Can you explain this answer?

Understanding the Problem
When tossing three coins, we want to find the probability of getting at least one head.
Sample Space
The sample space (all possible outcomes) when tossing three coins is:
- HHH
- HHT
- HTH
- HTT
- THH
- THT
- TTH
- TTT
This gives us a total of 2^3 = 8 outcomes.
Calculating Desired Outcomes
To find the probability of getting at least one head, it's often easier to calculate the probability of the complementary event — getting no heads (i.e., all tails).
- The only outcome for no heads is: TTT
Thus, there is 1 outcome where we get no heads.
Probability of No Heads
The probability of getting no heads (all tails) is:
- P(no heads) = Number of favorable outcomes for no heads / Total outcomes = 1/8
Calculating Probability of At Least One Head
Now, we can find the probability of getting at least one head:
- P(at least one head) = 1 - P(no heads) = 1 - 1/8 = 7/8
Final Answer
Thus, the probability of getting at least one head when tossing three coins is:
- 7/8
Therefore, the correct answer is option 'D'.

The probability that two friends share the same birth-month is   
  • a)
    1/6
  • b)
    1/12
  • c)
    1/144
  • d)
    1/24
Correct answer is option 'B'. Can you explain this answer?

Let A = the event that the birth month of first friend  
And B= that of second friend.
∴ P( A )= 1, as 1st friend can born in any month
and P(B) = 1/12, by the condition.
∴ Probability of two friends share same birth-month 

Let AX - B be a system of linear equations where A is an m x n matrix and b is a m x 1 column vector and X is an x 1 column vector of unknown. Which of the following is false?
  • a)
    The system has a solution if and only if, both A and the augmented matrix [A, B] have the same rank.
  • b)
    If m < n and B is the zero vector, then the system has infinitely many solutions.
  • c)
    If m = n and B is non-zero vector, then the system has a unique solution.
  • d)
    The system will have only a trivial solution when m - n, B is the zero vector and rank (A) = n.
Correct answer is option 'C'. Can you explain this answer?

Following are the possibilities for a system of linear equations:
(i) If matrix A and augmented matrix [AB] have same rank, then the system has solution otherwise there is no solution.
(ii) If matrix A and augmented matrix [AB] have same rank which is equal to the number of variables, then the system has unique solution and if B is zero vector then the system have only a trivial solution.
(iii) If matrix A and matrix [AB] have same rank which is less than the number of variables, then the system has infinite solution.
Therefore, option (c) is false because if m - n and B is non-zero vector, then it is not necessary that system has a unique solution, because m is the number of equations (quantity) and not the number of linearly independent equations (quality).

What is the maximum number of edges in an acyclic undirected graph with n vertices?
  • a)
    n - 1
  • b)
    n
  • c)
    n + 1
  • d)
    2n - 1
Correct answer is option 'A'. Can you explain this answer?

Gaurav Verma answered
Introduction:
An acyclic undirected graph is a graph that does not contain any cycles, which means there are no closed loops in the graph. In such a graph, the maximum number of edges can be determined based on the number of vertices.

Explanation:
To find the maximum number of edges in an acyclic undirected graph with n vertices, we need to consider that each vertex can be connected to all other vertices except itself and its adjacent vertices.

Maximum Number of Edges:
Let's consider a specific vertex in the graph. This vertex can be connected to all the remaining (n-1) vertices. However, it cannot be connected to itself or its adjacent vertices since it is an acyclic graph.

So, for each vertex, the maximum number of edges that can be added is (n-1) - 1 = n - 2.

Total Number of Edges:
Since there are n vertices in the graph, we need to sum up the number of edges for each vertex.

Total number of edges = n * (n - 2)

However, this counts each edge twice, once for each vertex it is connected to. Therefore, we need to divide the total number of edges by 2 to get the actual number of edges.

Total number of edges = n * (n - 2) / 2

Simplification:
Let's simplify the equation further:

n * (n - 2) / 2 = n * n / 2 - 2 * n / 2 = n^2 / 2 - n

Conclusion:
Hence, the maximum number of edges in an acyclic undirected graph with n vertices is n^2 / 2 - n, which can be approximated to n - 1.

Therefore, the correct answer is option 'A' (n - 1).

Aishwarya studies either computer science or mathematics everyday. if the studies computer science on a day, then the probability that she studies mathematics the next day is 0.6. If she studies mathematics on a day, then the probability that she studies computer science the next day is 0.4. Given that Aishwarya studies computer science on Monday, what is the probability that she studies computer science on Wednesday?  
  • a)
    0.24  
  • b)
    0.36  
  • c)
    0.4    
  • d)
    0.6 
Correct answer is option 'C'. Can you explain this answer?

Bhavya Ahuja answered
Given information:
- Aishwarya studies either computer science or mathematics every day.
- If Aishwarya studies computer science on a day, the probability that she studies mathematics the next day is 0.6.
- If Aishwarya studies mathematics on a day, the probability that she studies computer science the next day is 0.4.

We are asked to find the probability that Aishwarya studies computer science on Wednesday, given that she studies computer science on Monday.

To solve this problem, we can use conditional probability.

Conditional Probability:
Conditional probability is the probability of an event occurring given that another event has already occurred. It is denoted by P(A|B), where A and B are events.

In this case, we are interested in finding the probability of Aishwarya studying computer science on Wednesday (event A), given that she studies computer science on Monday (event B). So, we need to find P(A|B).

Applying Conditional Probability:
We know that Aishwarya studies either computer science or mathematics every day. So, we can consider these two events as the sample space.

Let's define the events:
- C: Aishwarya studies computer science
- M: Aishwarya studies mathematics

We are given that Aishwarya studies computer science on Monday (event B), so we are interested in finding the probability of Aishwarya studying computer science on Wednesday (event A).

We need to find P(C|C), which is the probability of Aishwarya studying computer science on Wednesday, given that she studied computer science on Monday.

We can use the formula for conditional probability:
P(C|C) = P(C and C) / P(C)

Finding P(C and C):
Since Aishwarya studies either computer science or mathematics every day, the events C and M are mutually exclusive. So, P(C and C) is equal to P(C).

Finding P(C):
We are given that Aishwarya studies computer science on Monday. So, P(C) = 1.

Calculating the Probability:
Using the formula for conditional probability, we have:
P(C|C) = P(C and C) / P(C)
P(C|C) = P(C) / P(C)
P(C|C) = 1 / 1
P(C|C) = 1

Therefore, the probability that Aishwarya studies computer science on Wednesday, given that she studies computer science on Monday, is 1 or 100%.

Answer:
The probability that Aishwarya studies computer science on Wednesday is 0.4 (or 40%). Therefore, the correct answer is option C) 0.4.

An examination paper has 150 multiple-choice questions of one mark each, with each question having four choices. Each incorrect answer fetches – 0.25 mark. Suppose 1000 students choose all their answers randomly with uniform probability. The sum total of the expected marks obtained all these students is  
  • a)
    0  
  • b)
    2550  
  • c)
    7525  
  • d)
    9375  
Correct answer is option 'D'. Can you explain this answer?

Nandini Basak answered
Ans.

Method to Solve :

Probability of choosing the correct option = 1/4
Probability of choosing a wrong option = 3/4

So, expected mark for a question for a student = 1/4�1+3/4�(−0.25)=1/16
Expected mark for a student for 150questions =1/16�150=9.375

So, sum total of the expected marks obtained by all 1000students = 9.375�1000=9375

Let G be an arbitrary graph with n nodes and k components. If a vertex is removed from G, the number of components in the resultant graph must necessarily lie between.
  • a)
    k and n
  • b)
     k - 1 and k + 1
  • c)
    k - 1 and n - 1
  • d)
    k + 1 and n - k
Correct answer is option 'C'. Can you explain this answer?

Aashna Kaur answered
Maximum components will result after removal of a node if graph G is a star graph as shown below.

or a null graph of n vertices as shown below:

In either case, if node vis removed, the number of components will be n - 1, where, n is the total number of nodes in the star graph.
∴ n - 1 is the maximum number of components possible. Minimum components will result if the node being removed is a lone vertex in which case, the number of components will be k - 1.
∴ The number of components must necessarily lie between k - 1 and n - 1.

The probability that there are 53 Sundays in a randomly chosen leap year is 
  • a)
    1/7
  • b)
    1/14
  • c)
    1/28
  • d)
    2/7
Correct answer is option 'D'. Can you explain this answer?

Gauri Roy answered
Problem:
The probability that there are 53 Sundays in a randomly chosen leap year is:

a) 1/7
b) 1/14
c) 1/28
d) 2/7

The correct answer is option 'D'. Let's explain why it is the correct answer.

Leap Year:
A leap year is a year that is exactly divisible by 4, except for years that are divisible by 100. However, years that are divisible by 400 are also leap years. This means that every 4 years, there is an extra day, February 29th, in the calendar.

Number of Days in a Leap Year:
In a leap year, there are 366 days instead of the usual 365 days. This is because of the extra day, February 29th.

Number of Weeks in a Leap Year:
Since there are 7 days in a week, the total number of weeks in a leap year is given by:
Total number of weeks = Number of days / Number of days in a week
= 366 days / 7 days per week
= 52 weeks and 2 days

Number of Sundays in a Leap Year:
To find the probability of having 53 Sundays in a leap year, we need to determine the number of Sundays that can occur in a leap year.

In a leap year, the first day of the year can be any day of the week. Let's consider each possibility:

1) If the first day of the year is a Sunday, then there will be 53 Sundays in the year.
2) If the first day of the year is a Monday, then there will be 53 Sundays in the year.
3) If the first day of the year is a Tuesday, then there will be 52 Sundays in the year.
4) If the first day of the year is a Wednesday, then there will be 52 Sundays in the year.
5) If the first day of the year is a Thursday, then there will be 52 Sundays in the year.
6) If the first day of the year is a Friday, then there will be 52 Sundays in the year.
7) If the first day of the year is a Saturday, then there will be 52 Sundays in the year.

In options a), b), and c), the probability given is less than 1/7, which means it is incorrect. The only option left is option d), which is 2/7. This is the correct answer.

Conclusion:
The probability that there are 53 Sundays in a randomly chosen leap year is 2/7, which is the correct answer (option 'D').

In a class of 200 students, 125 students have taken Programming Language course, 85 students have taken Data Structures course, 65 students have taken Computer Organization course; 50 students have taken both Programming Language and Data Structures, 35 students have taken both Data Structures and Computer Organization; 30 students have taken both Data Structures and Computer Organization, 15 students have taken all the three courses. How many students have not taken any of the three courses?
  • a)
    15
  • b)
    20
  • c)
    25
  • d)
    30
Correct answer is option 'C'. Can you explain this answer?

Siddharth Basu answered

According to inclusion - exclusion formula:

PL = students who have taken programming.
DS = Students who have taken Data structures.
CO = Students who have taken Computer Organization.
So, the number of students who have taken atleast 1 of the 3 courses is given by:
= 125 + 85 + 65 - 50 - 35 - 30 + 15
= 175
Therefore, the number of students who have not taken any of the 3 courses is 
= Total students-students taken atleast 1 course 
= 200-175 = 25

The following propositional statement is 
(P → (Q v R)) → (( P ∧ Q) → R)
  • a)
    Satisfiable but not valid
  • b)
    Valid
  • c)
    A contraditiction
  • d)
    None of the above
Correct answer is option 'A'. Can you explain this answer?

Naina Banerjee answered
(P → (Q v R)) → ((P ∧ Q) → R)
≡ (P→ Q+ R) → (PQ → R)
≡ [P' + Q + R] → [(PQ)' + R]
≡ [P' + Q + R] → [P' + Q' + R]
≡ (P' + Q + R)' + P' + Q' + R 
≡ PQ' R' + P' + Q' + R
≡ Q' + Q' PR' + P' + R
≡ Q' + P' + R (by absorption law)
Which is a contingency (i.e. satisfiable but not valid).

A box contains 4 white balls and 3 red balls. In succession, two balls are randomly selected and removed from the box. Given that the first removed ball is white, the probability that the second removed ball is red is 
  • a)
    1/3      
  • b)
    3/7    
  • c)
    1/2      
  • d)
    4/7
Correct answer is option 'C'. Can you explain this answer?

Prerna Menon answered
Problem:
A box contains 4 white balls and 3 red balls. In succession, two balls are randomly selected and removed from the box. Given that the first removed ball is white, the probability that the second removed ball is red is:

a) 1/3
b) 3/7
c) 1/2
d) 4/7

Solution:
To find the probability that the second removed ball is red, given that the first removed ball is white, we can use conditional probability.

Conditional Probability:
Conditional probability is the probability of an event occurring given that another event has already occurred. It is denoted as P(A|B), where A and B are events.

In this problem, we want to find P(Red ball is selected second|White ball is selected first), which can be written as P(R|W).

Step 1: Find the Probability of Selecting a White Ball First
The probability of selecting a white ball first can be calculated by dividing the number of white balls by the total number of balls:
P(White ball is selected first) = Number of white balls / Total number of balls = 4 / 7

Step 2: Find the Probability of Selecting a Red Ball Second, Given that a White Ball is Selected First
Since we know that a white ball is selected first, the total number of balls is reduced by 1. Therefore, the probability of selecting a red ball second, given that a white ball is selected first, can be calculated by dividing the number of red balls by the reduced total number of balls:
P(Red ball is selected second|White ball is selected first) = Number of red balls / (Total number of balls - 1) = 3 / 6 = 1 / 2

Conclusion:
The probability that the second removed ball is red, given that the first removed ball is white, is 1/2. Therefore, the correct answer is option C.

What is the number of vertices in an undirected connected graph with 27 edges, 6 vertices of degree 2, 3 vertices of degree 4 and remaining of degree 3?
  • a)
    10
  • b)
    11
  • c)
    18
  • d)
    19
Correct answer is option 'D'. Can you explain this answer?

Sum of degree of all vertices = 2e (using Handshaking lemma)
So, 6 x 2 + 3 x 4 + x x 3 = 2 x 27
12 + 12 + 3x = 54
3x = 54 - 24
x = 30/3
x = 10
So, total number of vertices
⇒ x + 6 + 3 = 10 + 6 + 3 = 19

A monoid is called a group if _______
  • a)
    (a*a)=a=(a+c)
  • b)
    (a*c)=(a+c)
  • c)
    (a+c)=a
  • d)
    (a*c)=(c*a)=e
Correct answer is option 'D'. Can you explain this answer?

Sudhir Patel answered
A monoid(B,*) is called Group if to each element there exists an element c such that (a*c)=(c*a)=e. Here e is called an identity element and c is defined as the inverse of the corresponding element.

Let X and Y be two exponentially distributed and independent random variables with mean α and β, respectively. If Z= min (X, Y), then the mean of Z is given by
  • a)
    (1/(α + β))
  • b)
    min (α, β)
  • c)
    (αβ/(α + β))
  • d)
    α + β
Correct answer is option 'C'. Can you explain this answer?

Ashwini Ghosh answered

X and Y are two independent exponentially distributed random variables. Let λ1 and λ2 parameters of X and Y respectively.

Given, Z = min (X, Y)

Since mean of exponential distribution = 1/Parameter
So,

∴ Z is random variable with parameter
Mean of Z = 

How many solutions does the following system of linear equations have?
- x + 5y = - 1 
x - y = 2
x + 3y = 3
  • a)
    Infinitely many
  • b)
    Two distinct solutions
  • c)
    Unique
  • d)
    None of these
Correct answer is option 'C'. Can you explain this answer?

Srestha Rane answered

The augmented matrix is

Using gauss-efimination on above matrix we get,

Rank [A | B] - 2 (number of non zero rows in [A | B])
Rank [A ] = 2 (number of non zero row s in [A ])
Rank [A | B] = Rank [A] = 2 = number of variables
∴ Unique solution exists.

A die is rolled three times. The probability that exactly one odd number turns up among the three outcomes is
  • a)
    1/6
  • b)
    3/8
  • c)
    1/8
  • d)
    1/2
Correct answer is option 'B'. Can you explain this answer?

Stuti Datta answered
Probability of getting an odd number in rolling of a die = 3/6 = 1/2.
Now using binomial distribution
P(Exactly one odd number among three outcomes)

Chapter doubts & questions for Discrete & Engineering Mathematics - Question Bank for GATE Computer Science Engineering 2025 is part of Computer Science Engineering (CSE) exam preparation. The chapters have been prepared according to the Computer Science Engineering (CSE) exam syllabus. The Chapter doubts & questions, notes, tests & MCQs are made for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests here.

Chapter doubts & questions of Discrete & Engineering Mathematics - Question Bank for GATE Computer Science Engineering in English & Hindi are available as part of Computer Science Engineering (CSE) exam. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.

Signup to see your scores go up within 7 days!

Study with 1000+ FREE Docs, Videos & Tests
10M+ students study on EduRev