Cst308 Comprehensive June 2022
Cst308 Comprehensive June 2022
F 0500csr308052202
RegNo.:
APJ ABDUL KALAM TECHNOLOGICAL
Sixth Semester B.Tech Degree Examination June 2022 (201 Sc
(1) Each qaestion carries one mark. No negative marks for wrong answers
(2) Total number of questions: 50
@ AA questions are to be onswered. Each question will befollowed by 4 possible answers of
i\-/ which only ONE is correct.
(4) If more than one option is chosen, it will not be consideredfor voluotion.
l. The Inorderand Preordertraversal ofabinarytree is d b e a f c g and a b d e c f g respectively. Which
among the following is the correct Post Order Traversal Sequence for this tree?
a) debfgca b) edbgfca c) edbfgca d) defgbca
2. Which of the following is not the application of stack?
a) A parenthesis b) Tracking of local c) Compiler Syntax d) Data Transfer
program
balancing variables at run Analyzer between two
time asynchronous
processes
3. In the worst case, the number of comparisons needed to search a singly linked list of length n for a
given element is?
a)l b)2 c) a
J d)4
5. The optimal data structure used to solve Tower of Hanoi is
6. Assume that the operators *, -, X are left associative and ^ is right associative. The order of
precedence (from highest to lowest) is ^, X, +, -. The postfix expression for the infix expression
a+bXc-d^e^fis?
a) abc Xl"def ^^ - b) abc X+ de^f^ - c) ab+c Xd - e ^f d) ) -+aXbc^ ^def
7. The time complexity of heap sort in worst case is
Page 1 of 7
0600csT3080s2202
8' Suppose we are sorting an aftay of eight integers using heapsort, and
we have just finished some
heapiff (either maxheapify or qrinheapify) operations. The array now looks like
this:
t6 t4 t5 t0 1227 28
How many heapifu operations have been performed on root of heap?
a) 1 q z c) 3or4 d) 5o16
9. what is the number of edges present in a complete graph having n vertices?
a) (n*(n+1))/2 b) (n*(n-l))/2 c) n d)
Information given
is insufficient
l0' If several elements are competing forthe same bucket in the hash table, what is it called?
a) Diffirsion b) Replication c) collision d) Duplication
11 A process which is copied from main memory to secondary memory on the basis
of requirement is
known as
'f a) Demand paging b) paging c) Threads d) Segmentation \r'
12 For which of the following purposes, Banker's algorithm is used?
a) Preventing b) solving deadlock c) Recover from d) None
deadlock deadlock
l3 Identifu the system calls tlat on termination does not return control to the calling point.
a) exec b) fork c) longimp d) ioctl
14 A cPU generates 32-bitvirtual addresses. The page size is 4 KB. The processor has a translation look-
aside buffer (TLB) which can hold a total o1 1)3-page table entrie,
und i, 4-way set associative. The
minimum size of the TLB tag is i
1
16 A system uses FIFO policy for page replacemenl - ,", ;;" frames with no pages l6aded to begin
with. The system first accesses 100 distin"t puffi in some order and then accesses
the same 100
pages but now in the reverse order. How many page faults
will occur?
a) 196 b) rs2 c) rs7 d) l9s
17 If a process is executingin its critical section, then no other processes can be executine in their
critical Section. What is this condition called?
Page 2 of 7
0600csT308052202
Io
10
What is a long-term scheduler?
t
a) It selects processes b) It selects processes c) It selects d) None of the
which have to be which have to be processes which mentioned
brought into the executed next and h"uu" to remove
ready queue allocates CpU from memory by
swapping
19 A systematic procedure for moving the cpu to new process is known as-
a) Synchronization b) Deadlock c) Starvation d)
context
Switching
20 In a virtual memory system, size of virtual address is 32-bit, size of physical address is 30--bit, page
size is 4 Kbyte and size of each page table entry is 32-bit. The main memory is byte addressabie.
Which one of the following is the maximum number of bits that can be used for storing protection
and
other information in each page table entry?
a)2 b) l0 c) 12 d) 14
2l The amount of RoM needed to implement a 4-bit multiplier is
a) 64 bits b) 128 bits c) I Kbits d) 2 Kbits
22 Match the followins
a) a6 bl c3 d5 e2 f4 b) a5 b4 c6 d3 el D c) a3 b5 c2 d4 et f2 d) a6 b5 c2d3 el f:l
23 Register renaming is done in pipelined processors
Page 3 of 7
0600csr3080s2202
28 For the daisy chain scheme of connecting VO devices, which of the following statement is true?
a) It gives non- b) for c)
It is only useful It requiresa d) [t gives uniform
uniform priority to connecting slow separate intemrpt priority to all
various devices devices to a pin on the devices
processor processor for
each device
29 A machine with N different opcodes can contain how many different sequences of micro-operations
a) 2n b) iyttt c) 7112 d)N
30 A cache has a 64 KB capacity, 128 -byte lines (blocks), and is 4 -way set associative. The system
containing the cache uses 32 -bit addresses. How many lines (blocks) and sets does the cache have?
a) 64 b) r28 2s6 c) d) 32
31 Which of the following is the property of transaction that protects data from system failure?
a) Atomicity b) Isolation c) Durability d) Consistency
Page 4 of 7
0600csr3080s2202
",
Assume that relations corresponding to the above schema are not empty. Which one of the following
\...,
is the correct interpretation of the above query
^\
at a\
Find the names of b)
u) Find the names of e) Find the names of
d)
vt Find the names of
att supptiers who
all suppliers who all suppliers who all suppliers who have not supplied
have. supplied a have not supplied a have supplied only blue parts'
38 Which commands are used to control access over objects in relational database?
r a) CASCADE & b) GRANT & c) QUE & QUIST d) None of these
MVD REVOKE
39 Consider the ORACLE relationships below:One (x, y) = {<2,5), (1, 6>, <1, 6),11, 6t,14,8t,14,
"< 8>) Twa(x,y)= {<2,55>,(1, 1), 14,4},<1,6>,(4,8), (4,8}, 19,9},<1,6>}.Considerthe
; following SQL queries, SQI and SQ2, respectively:
' * + FROM One)
SQl : SELECT
EXCEPT
(SELECT * FROM Two);
SQ2 : SELECT * FROM One)
EXCEPT ALL
(SELECT * FROM Two);
What is the cardinality of the result generated on the execution of each SQL query on the instances
above?
a) 2andl, b) land2, c) 2and2, d) landl,
respectively respectively respectively respectively
40 Which of the following is TRUE?
Page 5 of 7
TV
o€utcst308052202
a) Statement I
is true b) Statement I
is true c) Statement I can d) Statement I is
and Statement 2 is and Statemgnt 2 is
--<
be true and ' false and
true false Statement 2 is Statement 2 is
true also false
45 The number of elements present in the e-closure(f2) in the given diagram:
Page 6 of7
0500csfit08052202
PageT ot7