Q3.In quick sort, for sorting n elements, the (n/4)th the smallest element is selected as pivot using an O(n)
time algorithm. What is the worst case time complexity of the quick sort?
Answer : Option BExplaination / Solution: No Explaination.
Q6.Consider a 4-way set associative cache (initially empty) with total 16 cache blocks. The main memory
consists of 256 blocks and the request for memory blocks is in the following order:
0,255,1,4,3,8,133,159,216,129,63,8,48,32, 73, 92,155
Which one of the following memory block will not be in cache if LRU replacement policy is used?
Answer : Option DExplaination / Solution: No Explaination.
Q8.The following key values are inserted into a B+-tree in which order of the internal nodes is 3, and that
of the leaf nodes is 2, in the sequence given below. The order of internal nodes is the maximum number
of tree pointers in each node, and the order of leaf nodes is the maximum number of data items that
can be stored in it. The B+-tree is initially empty. 10, 3, 6, 8, 4, 2, 1. The maximum number of times leaf
nodes would get split up as a result of these insertions is
Answer : Option CExplaination / Solution: No Explaination.
Q9.Consider the following relational schema: Suppliers (sid:integer, sname: string, city:string, street: string)
Parts (pid:integer, pname: string, color:string)
Catalog (sid:integer, pid:integer, cost: real)
Assume that, in the suppliers relation above, each supplier and each street within a city has a unique
name, and (sname, city) forms a candidate key. No other functional dependencies are implied other
than those implied by primary and candidate keys. Which one of the following is TRUE about the above
schema?
Answer : Option BExplaination / Solution: No Explaination.
Q10.Consider a system with 4 types of resources R1 (3 units), R2 (2 units),
R3 (3 units), R4 (2 units).
A non-preemptive resource allocation policy is used. At any given instance, a request is not entertained
if it cannot be completely satisfied. Three processes P1,P2,P3 request the resources as follows if executed independently.
Which one of the following statements is TRUE if all three processes run concurrently starting at time t
= 0?
Answer : Option AExplaination / Solution: No Explaination.
Total Question/Mark :
Scored Mark :
Mark for Correct Answer : 1
Mark for Wrong Answer : -0.5
Mark for Left Answer : 0