Cst308 Comprehensive June 2023
Cst308 Comprehensive June 2023
F
1100csr308052302
Reg No.:
Instructions: (I) Eoch question carries one mark No negative morksfor wrong answers
(2) Totol number of questions: 50
(3) AII questions are to be qnswered. Each question will be followed by I possible answers of
which only ONE is correct-
(1) If more than one option is chosen, it will not be considered for vsluation-
Page 1 of 5
1r00csT308052302
Page 2 of 6
1100csT308052302
Page 3 of 5
1r00csT308052302
a) Slower cache b) .
Increase index c) Increase d) All of these
access time bits block size
28 In of which consists of
a k-way set associative cache, the cache is divided into v sets, each
k lines. The lines of a set are placed in sequence one after another. The lines in set s are
sequenced before the lines in set (s+l). The main memory blocks are numbered 0 onwards.
The main memory block numbered j must be mapped to any one of the cache lines from.
AA
a) (i modv) * kto fi modv) * k+ (k-l)
b) ( mod v) to (i mod v) + (k-1)
:l ( mod k) to ( mod k) + (v-l)
a) ( modk) * vto (j modk) * v+(v-1)
29 Highly encoded schemes that use compact codes to speciS 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)2b)3c)4d)s
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 ofjoin is............
a:
a) mn b)m*n c)
(m+n)12 d) 2(rn+n)
JJ An index record appears for every searchtty value in the file
a) Dense index b) Sparse index c)
Hash index d) Single-key
index
34 If a relatin is in BCNF Then it is in:
a) 2NF b) 3NF c) INF d) lNFand2NF
35 Which of the followine is a DDL command?
-Select
a) b) Create c) Insert d) Delete
36 The number of attributes in a relation is called its
a) cardinality b) size c)
schema d)
degree
37 Consider a database implemented using B+ tree for file indexing and installed on a disk
drive with block size of 4 KB. The size of search key is 12 bytes and the size of tree/disk
pointer is 8 bytes. Assume that the database has one million records. Also assume that no
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 bloch The minimum number of disk accesses required to retrieve
any record in the database is
a)rb)2c)3d)4
38 Consider the relation R(A,B,C,D,E) and the set p:{AB->CE, E->AB, C->D}.What is the
highest normal form of this relation?
a) lNF b) 2NF c) 3NF d) BCNF
39 What is the Lost Update Problem also known as?
Page 5 of 6
rr00csT308052302
a) aba^*b^*bba
b) ab(ab)^*bba r
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: (l1l+l lll l). . The minimum number of states in any
DFA accepting this language is
a) 3 b)s c)8 d) s
47 Suppose a regular language L is closed under the operation halving, then the result would
be...........
a) l/4L will be b) ll2L will be c) llsLwill be d) All of the
regular regular regular mentioned
48 which among the following cannot be accepted by a regular grammar?
a) Lisasetof b) Lisasetofbinary c) Lisasetof d) Lisasetof
numbers complement string with 0nI n
divisible by 2 odd number
of0
49 IfLl andL2 are context free languages, which of the following is context free?
a) Ll* b) L2IJIL c) Ll.L2 d) All of the
mentioned
50 Consider a grammar with the following productions
S--> aab bac I aB
r S-->aS
S --> abb I ab
S a --> bdb
The above grammar is
a) Context free b) Regular c) Context d) Type 0
sensitive
*'rt * rf *-
Page 6 of 6