CS and IT GATE 2016 Set-1 Questions with Answer

Ques 40 DBMS


Consider the following two phase locking protocol. Suppose a transaction T accesses (for read or write operations), a certain set of objects {O1,...,Ok}. This is done in the following manner:

Step 1. T acquires exclusive locks to O1,...,Ok in increasing order of their addresses.
Step 2. The required operations are performed.
Step 3. All locks are released.

This protocol will

A

guarantee serializability and deadlock-freedom

B

guarantee neither serializability nor deadlock-freedom

C

guarantee serializability but not deadlock-freedom

D

guarantee deadlock-freedom but not serializability



Ques 41 DBMS


A database of research articles in a journal uses the following schema.

(VOLUME, NUMBER, STARTPGE, ENDPAGE, TITLE, YEAR, PRICE)

The primary key is (VOLUME, NUMBER, STARTPAGE, ENDPAGE) and the following functional dependencies exist in the schema.

(VOLUME, NUMBER, STARTPAGE, ENDPAGE) -> TITLE
(VOLUME, NUMBER) -> YEAR
(VOLUME, NUMBER, STARTPAGE, ENDPAGE) -> PRICE

The database is redesigned to use the following schemas.

(VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, PRICE)
(VOLUME, NUMBER, YEAR)

Which is the weakest normal form that the new database satisfies, but the old one does not?

A

1NF

B

2NF

C

3NF

D

BCNF



Ques 42 DBMS


Which one of the following is NOT a part of the ACID properties of database transactions?

A

Atomicity

B

Consistency

C

Isolation

D

Deadlock-freedom



Ques 43 DBMS


Which of the following is NOT a superkey in a relational schema with attributes V, W, X, Y, Z and primary key V Y ?

A

V X Y Z

B

V W X Z

C

V W X Y

D

V W X Y Z



Ques 44 Design Algorithm Analysis


The worst case running times of Insertion sort, Merge sort and Quick sort, respectively, are:

A

Θ(n log n), Θ(n log n) and Θ(n2)

B

Θ(n2), Θ(n22) and Θ(n Log n)

C

Θ(n2), Θ(n log n) and Θ(n log n)

D

Θ(n2), Θ(n log n) and Θ(n2)



Ques 45 Digital Logic Design


We want to design a synchronous counter that counts the sequence 0-1-0-2-0-3 and then repeats. The minimum number of J-K flip-flops required to implement this counter is


a is the correct answer.


Ques 46 Digital Logic Design


The 16-bit 2’s complement representation of an integer is 1111 1111 1111 0101; its decimal representation is


a is the correct answer.


Ques 47 Digital Logic Design


Consider a carry lookahead adder for adding two n-bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is

A

Θ(1)

B

Θ(log (n))

C

Θ(√ n)

D

Θ(n)



Ques 48 Digital Logic Design


Consider the Boolean operator # with the following properties:

x#0 = x, x#1 = x', x#x = 0 and x#x'= 1

Then x#y is equivalent to

A

x'y + xy'

B

xy' + (xy)

C

x'y + xy

D

xy + (xy)'



Ques 49 Discrete Mathematics


Consider the recurrence relation

a1 = 8, an = 6n2 + 2n + an-1.
Let a99 = k x 104.

The value of K is _____


a is the correct answer.


Ques 50 Discrete Mathematics


Let p, q, r, s represent the following propositions.

p: {8, 9, 10, 11, 12}
q: x is a composite number
r: x is a perfect square
s: x is a prime number

The integer x ≥ 2 which satisfies ¬((p ⇒ q)∧(¬r∨ ¬s)) is .


a is the correct answer.


Ques 51 Discrete Mathematics


Let an be the number of n-bit strings that do NOT contain two consecutive 1s. Which one of the following is the recurrence relation for an?

A

an = an−1 +2an-2

B

an= an−1 +an-2

C

an= 2an−1 +an-2

D

an= 2an−1 +2an-2



Ques 52 Mathematics


Consider the following experiment.

Step 1. Flip a fair coin twice.
Step 2. If the outcomes are (TAILS, HEADS) then output Y and stop.
Step 3. If the outcomes are either (HEADS, HEAD) or (HEADS, TAILS), then output N and stop.
Step 4. If the outcomes are (TAILS, TAILS), then go to Step 1.
The probability that the output of the experiment is Y is (up to two decimal places).


a is the correct answer.


Unique Visitor Count

Total Unique Visitors

Loading......