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

GATE 2014 (Session 1)

65 questions

MCQ 40 · NAT 251-mark 30 · 2-mark 35

Questions 61–65 of 65

Q61Graph Theory2 marksNAT
Consider an undirected graph G where self-loops are not allowed. The vertex set of G is {(i,j):1≤\leqi≤\leq12, 1≤\leqj≤\leq12}. There is an edge between (a,b) and (c,d) if |a-c|≤\leq1 and |b-d| ≤\leq1. The number of edges in the graph is ____.

Q62Graph Theory2 marksMCQ−0.67 if wrong
An ordered n-tuple (d1,d2,...,dnd_{1}, d_{2} ,... , d_{n}) with d1≥d2≥...≥dnd_{1}\geq d_{2} \geq ... \geq d_{n} is called graphic if there exists a simple undirected graph with n vertices having degrees d1,d2,...,dnd_{1}, d_{2} ,... , d_{n} respectively. Which of the following 6-tuples is NOT graphic?

Q63Propositional Logic2 marksMCQ−0.67 if wrong
Which one of the following propositional logic formulas is TRUE when exactly two of p, q, and r are TRUE?

Q64SQL2 marksMCQ−0.67 if wrong
Given the following schema:
employees(emp-id, first-name, last-name, hire-date, dept-id, salary)
departments(dept-id, dept-name, manager-id, location-id)
You want to display the last names and hire dates of all latest hires in their respective departments in the location ID 1700. You issue the following query:
 SQL>SELECT last-name, hire-date
FROM employees
WHERE (dept-id, hire-date) IN
(SELECT dept-id, MAx(hire-date)
FROM employees JOIN departments USING(dept-id)
WHERE location-id = 1700
GROUP BY dept-id); 
What is the outcome?

Q65Pipeline Processor2 marksNAT
Consider two processors P1 and P2 executing the same instruction set. Assume that under identical conditions, for the same input, a program running on P2 takes 25% less time but incurs 20% more CPI (clock cycles per instruction) as compared to the program running on P1. If the clock frequency of P1 is 1GHz, then the clock frequency of P2 (in GHz) is _________.