Cst308 Comprehensive Course Work, December 2024
Cst308 Comprehensive Course Work, December 2024
1200csT308t2240t
o
ffi
1
RegNo.:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
B.Tech Degree s6 (s, FE) / 56 (PT) (S, FE) Examination December2024 Q0l9
Instructions: (I) Eoch question cafiies one mark. No negative marksfor wrong onsu'ers
(2) Total number of questions: 50
(3) AU questions are to fu onswered. Eoch question will befollowed by 4 possible
answerc of
whlch ontY ONE is correct
(4) If more than one option is chosen, it will not be consideredfor valuation.
a) Array should be b)
Array should be c)
Array should be d) None ofthese
sorted in randomly arranged
sorted in
descending order ascending order
2. In a binary heap, what is the time complexity of deleting the maximum element?
Page 1 of 5
F
120ocsr30812240t
9. Which of the following traversal algorithms ensures elements are visited in sorted order for a binary
search tree?
a) Pre-order b) Post-order c) In-order d) Level-order
10. What is the maximum number of nodes in a binary tree of height h?
a) Files in different b) Files in the same c) Directories d) Each user can only
can
directories directory can have cannot have have one file
have the same the same name subdirectories
name
13 A system is said to be in a deadlock state when:
a) are b) Processes
All processes c) CPU utilization is d) Processes are in
blocked are waiting 0016 ready state
for resources
held by each other
L4 In a multithreaded program, a thread takes 100 ms for computation and 10 ms for l/O. lf there are 5
such threads, what is the CPU utilization?
Page 2 of 5
?
t
1200csT308t2240L
2I A CPU has a clock cycle time of 2 ns and executes a program with 1 billion instructions. The CPI of the
processor is 1.5. What is the total execution time?
a) 3s b) ls c) 2s d) 0.5s
22 In a 4-way set associative cache, the total cache size is 54 KB and block size is 16 bytes. What is the
number of sets in the cache?
26 lf a CPU has 4 registers and 32 instructions, how many bits are required for the opcode?
a) 4 b)5 c) 3 d) 6
' 27 A system has a 32 KB 2-way set associative cache and a block size of 15 bytes. How many cache lines are
in one set?
aI to24 b) zoa.s c) 4096 d) 8192
28 A system uses a direct-rnapped cache with 512 blocks and a block size of 32 bytes. What is the size of
the tag field for a 32-bit memory address?
; a) 19 bits b) 18 bits c) 17 bits d) 16bits
;
29 Which memory type is the closest to the CPU Jnd provides fast access to frequently used data?
Page 3 of 5
r.
t
1200csT308L2240L
_ sql
Copy code
SELECT COUNT(r')
FROM Employees
WHERE Salary > (SETECTAVC(Salary) FROM Etnployees);
a) of b)
The total salary The number of c) The average d) The count of
all employees employees earning
salary of all employees with
above the average employees the lowest salary
salary
34 Which SQL command is used to remove a table from a database?
35 Which of the following properties ensures thtt a database transaction ls ompleted or entirely rolled
back?
a) Consistency b) Durability cf Atomicity d) lsolation
36 What is the role of the primary key in a database?
a) To uniquely b) To store large data c) To index the d) To allow duplicate
identify a record table records
in a table
37 A schedule is said to be conflict serializable if:
scss
Copy code
n_name(o_age > 30(Em ployees))
Page 4 of 5
?
I
1200csT308L2240t
a) employee b)
All Names of c) all
Ages of d) Names and ages
names employees older employees of employees
than 30
40 Consider a B+ tree with order 4. What is the maximum number of keys that can be stored in a node?
a) 2 b)3 c) 4 d) s
4t The language accepted by Linear Bounded Automaton:
a) Recursive b) free
Context c) Context Sensitive d) All of the
Language language Language mentioned
42 The Chomsky hierarchy classifies formal languages into how many levels?
a) 2 b)3 c) 4 d) s
43 A finite automaton requires minimum number of stacks.
a) 1 b) O c) 2 d) None ofthe
mentioned
M Regular expression for all strings starts with ab and ends with bba is.
a) Turing
Nested b) Turing c) Counter machine d)
Universal None of the
machines machine mentioned
49 Which of the following statements are false?
r
a) Every recursive b) Recursively i c) Recursive d) None of the
language is enumerable languages may mentioned
recursively language may not not be recursively
enumerable be recursive enumerable
50 lf L is a recursive language, L' is:
Page 5 of 5
e
I