CST308 New Question paper
CST308 New Question paper
SET 1 Answer
Total Pages: 5
Scheme
Reg No.: _______________ Name: _____________________________________
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.
(5) Calculators are not permitted
Page 1 of 6
1200CST308122401
14 In a multithreaded program, a thread takes 100 ms for computation and 10 ms for I/O. If there are 5
such threads, what is the CPU utilization?
a) 2 KB b) 4 KB c) 6 KB d) 8 KB
16 In a system with multiple processes, which synchronization mechanism ensures mutual exclusion?
Page 2 of 6
1200CST308122401
21 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) 1s c) 2s d) 0.5 s
22 In a 4-way set associative cache, the total cache size is 64 KB and block size is 16 bytes. What is the
number of sets in the cache?
a) 8 MB b) 16 MB c) 4 MB d) 32 MB
25 In a pipelined processor, the instruction throughput increases because
a) Each instruction b) Multiple c) The clock cycle d) The instruction set
uses fewer instructions are time is reduced is simplified
resources executed
simultaneously
26 If 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 16 bytes. How many cache lines are
in one set?
a) 1024 b) 2048 c) 4096 d) 8192
28 A system uses a direct-mapped 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) 16 bits
29 Which memory type is the closest to the CPU and provides fast access to frequently used data?
Page 3 of 6
1200CST308122401
sql
Copy code
SELECT COUNT(*)
FROM Employees
WHERE Salary > (SELECT AVG(Salary) FROM Employees);
scss
Copy code
π_name(σ_age > 30(Employees))
Page 4 of 6
1200CST308122401
a) All employee b)
Names of c) Ages of all 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) 5
41 The language accepted by Linear Bounded Automaton:
42 The Chomsky hierarchy classifies formal languages into how many levels?
a) 2 b) 3 c) 4 d) 5
43 Finite automata requires minimum _______ number of stacks.
a) 1 b) 0 c) 2 d) None of the
mentioned
44 Regular expression for all strings starts with ab and ends with bba is.
a) aba*b*bba b) ab(ab)*bba c) ab(a+b)*bba d) All of the
mentioned
45 The Grammar can be defined as: G=(V, ∑, p, S). In the given definition, what does S represents?
a) Accepting State b) Starting Variable c) Sensitive d) None of these
Grammar
46 The closure property of context free grammar includes :
a) Kleene b) Concatenation c) Union d) All of the
mentioned
47 A multitape turing machine is ________ powerful than a single tape turing machine.
a) more b) less c) equal d) none of the
mentioned
48 A turing machine that is able to simulate other turing machines:
a) Nested Turing b) Universal Turing c) Counter machine d) None of the
machines machine mentioned
49 Which of the following statements are false?
a) Every recursive b) Recursively c) Recursive d) None of the
language is enumerable languages may mentioned
recursively language may not not be
enumerable be recursive recursively
enumerable
50 If L is a recursive language, L’ is:
a) Recursive b) Recursively c) Recursive and d) None of the
Enumerable Recursively mentioned
Enumerable
Page 5 of 6
1200CST308122401
Page 6 of 6