GATE 2014 (Session 3) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2014 (Session 3)

65 questions

MCQ 47 · NAT 181-mark 30 · 2-mark 35

Questions 61–65 of 65

Q61Graph Theory2 marksMCQ−0.67 if wrong
If G is a forest with n vertices and k connected components, how many edges does G have?

Q62Planar Graph2 marksMCQ−0.67 if wrong
Let δ\delta denote the minimum degree of a vertex in a graph. For all planar graphs on n vertices with δ≥3\delta \geq 3, which one of the following is TRUE?

Q63Propositional Logic2 marksMCQ−0.67 if wrong
The CORRECT formula for the sentence, "not all rainy days are cold" is

Q64SQL2 marksMCQ−0.67 if wrong
Consider the following relational schema:
Employee (empId, empName, empDept )
Customer (custId,custName, salesRepId, rating)
SalesRepId is a foreign key referring to empId of the employee relation. Assume that each employee makes a sale to at least one customer. What does the following query return?
SELECT empName 
FROM employee E 
 WHERE NOT EXISTS (SELECT custId
FROM customer C
WHERE C. salesRepId = E. empId
AND C. rating < > 'GOOD')

Q65Boolean Algebra2 marksMCQ−0.67 if wrong
Let ⊕\oplus denote the Exclusive OR (XOR) operation. Let '1' and '0' denote the binary constants. Consider the following Boolean expression for F over two variables P and Q.
F(P,Q)=((1⊕P)⊕(P⊕Q))⊕((P⊕Q)⊕(Q⊕0))F(P,Q)=((1\oplus P)\oplus (P\oplus Q)) \oplus ((P\oplus Q) \oplus (Q\oplus 0))
The equivalent expression for F is