CCW CST308
CCW CST308
CCW CST308
1100CST308052302
Instructions: (1) Each question carries one mark. No negative marks for wrong answers
(2) Total number of questions: 50
(3) All questions are to be answered. Each question will be followed by 4 possible answers of
which only ONE is correct.
(4) If more than one option is chosen, it will not be considered for valuation.
a) 1 4 6 6 4 1 b) 1 3 5 1 3 5 c) 1 2 3 5 d) 1 3 5 5 3 1
3. The prefix form of A-B/ (C * D ⋀ E) is?
a) -/*⋀ACBDE b) -ABCD*⋀DE c) -A/B*C⋀DE d) -A/BC*⋀DE
4. Suppose we are sorting an array of eight integers using quicksort, and we have just finished
the first partitioning with the array looking like this:
2 5 1 7 9 12 11 10
Which statement is correct?
a) The pivot could b) The pivot could c) The pivot is d) Neither the 7
be either the 7 be the 7, but it is not the 7, but nor the 9 is the
or the 9. not the 9 it could be pivot.
the 9
5. In a complete k-ary tree, every internal node has exactly k children or no child. The
Page 1 of 6
1100CST308052302
disk is 150. The disk head movement using SCAN –scheduling algorithm is:
a) 172 b) 173 c) 151 d) 161
18 At a particular time of computation, the value of a counting semaphore is 10. Then 12 P
operations and "x" V operations were performed on this semaphore. If the final value of
semaphore is 7, x will be
a) 8 b) 9 c) 10 d) 11
19 In the ..... algorithm, the disk head moves from one end to the other, servicing requests
along the way. When the head reaches the other end, it immediately returns to the
beginning of the disk without servicing any requests on the return trip.
a) LOOK b) SCAN c) C-SCAN d) C-LOOK
20 Paging suffers from .............. fragmentation
a) External b) Internal c) Physical d) All of the abve
21 The main virtue for using single Bus structure is ____________
a) Fast data b) Cost effective c) Cost d) None of the
transfers connectivity and effective mentioned
speed connectivity
and ease of
attaching
peripheral
devices
22 Memory Buffer Register (MBR) is connected to ___.
a) Control Bus b) Address Bus c) Data Bus d) System Bus
23 The basic component of arithmetic circuit is________.
a) parallel b) parallel adder. c) half adder. d) full adder.
subtractor.
24 When we use auto increment or auto decrements, which of the following is/are true?
1) In both, the address is used to retrieve the operand and then the address gets altered
2) In auto increment, the operand is retrieved first and then the address altered
3) Both of them can be used on general purpose registers as well as memory locations
a) 1, 2, 3 b) 2 c) 1, 3 d) 2, 3
25 When we perform subtraction on -7 and -5 the answer in 2’s complement form is ....
a) 11110 b) 1110 c) 1010 d) 0010
26 The instruction -> Add LOCA, R0 does _______
a) Adds the value b) Adds the value of c) Adds the d) Adds the value
of LOCA to R0 R0 to the address values of of LOCA with a
and stores in the of LOCA both LOCA value in
temp register and R0 and accumulator and
stores it in stores it in R0
R0
27 Suppose, after analyzing a new cache design, you discover that the cache has far too many
conflict misses, and this needs to be resolved. You know that you must increase
associativity in order to decrease the number of cache misses. What are the implications of
increasing associativity?
Page 3 of 6
1100CST308052302
29 Highly encoded schemes that use compact codes to specify a small number of functions in
each micro instruction is ________
a) Horizontal b) Vertical c) Diagonal d) None of the
organisation organisation organisation mentioned
30 DMA interface unit eliminates the need to use CPU registers to transfers data from
a) MAR to MBR b) MBR to MAR c) I/O units to d) Memory to I/O
memory units
31 Let E1 and E2 be two entities in an E/Rdiagram with simple single-valued attributes. R1
and R2 are two relationships between E1 and E2, where R1 is one-to-many and R2 is
many-to-many. R1 and R2 do not have any attributes of their own. What is the minimum
number of tables required to represent this situation in the relational model?
a) 2 b) 3 c) 4 d) 5
32 Consider the join of a relation R with relation S. If R has m tuples and S has n tuples,then
the maximum size of join is............
Page 4 of 6
1100CST308052302
node of the B+ tree and no records are present initially in main memory. Consider that each
record fits into one disk block. The minimum number of disk accesses required to retrieve
any record in the database is _______
a) 1 b) 2 c) 3 d) 4
38 Consider the relation R(A,B,C,D,E) and the set F={AB->CE, E->AB, C->D}.What is the
highest normal form of this relation?
a) 1 NF b) 2 NF c) 3 NF d) BCNF
39 What is the Lost Update Problem also known as?
Page 5 of 6
1100CST308052302
a) aba^*b^*bba
b) ab(ab)^*bba
c) ab(a+b)^*bba
d) All of the mentioned
45 Pumping lemma is generally used for proving that
a) Given grammar b) Given grammar is c) Whether two d) None of these
is regular not regular given regular
expressions
are
equivalent or
not
46 ∗
Consider the regular language L= (111+11111) . The minimum number of states in any
DFA accepting this language is ...................
a) 3 b) 5 c) 8 d) 9
47 Suppose a regular language L is closed under the operation halving, then the result would
be ...................
a) 1/4 L will be b) 1/2 L will be c) 1/8 L will be d) All of the
regular regular regular mentioned
48 Which among the following cannot be accepted by a regular grammar?
a) L is a set of b) L is a set of binary c) L is a set of d) L is a set of
numbers complement string with 0n1 n
divisible by 2 odd number
of 0
49 If L1 and L2 are context free languages, which of the following is context free?
a) L1* b) L2UL1 c) L1.L2 d) All of the
mentioned
50 Consider a grammar with the following productions
S--> aab | bac | aB
S --> aS |
S --> abb | ab
S a --> bdb
The above grammar is
a) Context free b) Regular c) Context d) Type 0
sensitive
*****
Page 6 of 6