Comp SC 18
Comp SC 18
Comp SC 18
PAPER-I
If the questions attempted are in excess of the prescribed number, only the questions attempted
first up to the prescribed number shall be valued and the remaining ones ignored.
Answers may be given either in English or in Bengali but all answers must be
in one and the same language.
-: 2 ·.-
( b) State the quick sort algorithm and compute its worst case and
best case time complexity. Illustrate the working principle
of the quick sort algorithm using the following array:-
[5 , 3, 1 , 9, 8, 2, 4, 7]
( c) Distinguish between spanning tree and minimum spanning tree.
Find minimum spanning free for the following weighted graph:-
(d) Explain how one can identify connected and strongly connected
component;_ of a graph using DFS and BFS. 10 x 4
3. (a) Evaluate} 1d x2 using Simpson's 1/3rd rule taking 6 intervals.
0
Hence, obtain the approximate value of TT .
(b) Using the following data find the value ot ,{2 correct upto five
significant figures.
X 1.9 2.1 2.3 2.5 2.7
tli 1.3784 1.4491 l.5166 1.5811 1.6432
(b) Use Runge-Kutta method of fourth order to find y(Oo2) and y(0.4)
where
2
• 1 + y and y -= 0 when x -= 0 15+15+10
(b) ABC.Ltd. has two products: 1X' and 1Y1• To produce one Uhit of
'X', 2 units of materil P and 4 units of material Qare required
artd to produce one uru.t of 'Y' 3 units of material P and 2 units
of material Qare required. At least 16 units of each material
must be used in order to meet the committed sales of the two
products. Cost per unit of paterial P and material Qare .2.50
and Rs.0.25 respectively, Formulate the problem as LPP and solve
it graphically to minimize the total cost. 20 + 20
4. (a) State the Maximum Power Transfer Theorem.
(b) Calculate the value of the load resistance Ai, which will transfer
maximum power to the load for the circuit shown in Fig, below.
Also calculate the value of the maximum power thus transferred
to the load.
Contd.••P/3.
CS(O)CS-I/18
-: 3 ;-
( c) Find the short-circuit current i8c between the terminals A
and B of the circuit given below:- A
sv sv
8+12+1o+10
5. ( a) Explain schemes of Parity and CRC as used for error detection.
(b) Distinguish between adaptive and non-adaptive routing algorithm.
( c) Consider a 2.5 Mbps token ring LAN end frame size of 180 bytes.
If the ring latency' is 210f4s, then calculate th effective data
rate of the LAN.
(c) Implement the function f (A,B,C,D) • m(l,2,5,7,9,l.4) using MUX.
(d) Calculate the minimum number of gates required to implement the
Boolean function XY + Z using 2-input NOR gates. 10 x 4
6. Write short notes on any four o!' the following:-
(a) Carry Look-ahead Adder
(b) Merge sort algorithm and its time complexity
(c) Kruskal Algorith
(d) Synchronous counter
( e) Pushdown Automata
(f) Sliding Window Protocol. 10 X 4
§§§§§§§§§§§§§§
CS(O) CS-11/18
2018
COMPUTER SCIENCE- PAPER-II
Time Allowed : 3 Hours Full Marks : 200
If the questions attempted are In excess of the prescribed number, only the questions attempted
first up to the prescribed number shall be valued and the remaining ones Ignored.
Answers may be given either in English or ln Bengali but all answers must be
In one and the same language.
Answer any Five Questions 1
P.T.O.
CS(O)CS-II/18
2
PO 0 5 3
Pl 1 3 0
P2 2 8 16
P3 3 6 8
Find the wait time of each process and the average wait time.
4+4
c) What is a virtual memo.ry 7 What are the advantages of such
a n-emo.ry ?
6+6
d) suppose the time to service a page fault is on the average
10 milliseconds and a memory access takes 1 microsecond.
Find the average memory access time with a 99.99" hit ratio.
10
s. a} State the differences among Internet, Intranet, and Extranet.
8
b) What are IP classes andhowcan youidentify the IP class of
a given IP address ? What do you understand by Static IP and
Dynamic IP ?
6+4
c) What is the pu.i:pose of line coding? Discuss bipolar encoding
with an appropriate illustration.
4+8
d) Compare and contrast , 'l'CP and UDP.
10
6. a) Explain different types of Inheritance associated with Object
Oriented P.rogramning. l0
b) What are the differences between an Abstract Class and an
Interface ?
8
b) What are the dif£erences between Method Overloa ng and
Method Overriding?
10
c) Write a Ctt Program to reverse an integer, e.g., if ·the input
is 12345 thecorresponding output will be 54321.
12
7. a) State the characteristics of the RISC Architecture. Cont>are
it with CIS:.
8
b) What are tri-state devices and why they are essential in a
bus oriented system?
10
c) Compare between SRAM and DRAM. Describe the memory hierarchy
of a Computes System.
d) A
d) List and explain the different types C'f micro-operations. d
d
i
8. Write short notes on • t
i
a) Use of Finite State Machines in the design of Lexical v
Analyzers. e
b) Video streaming through Intemet. a
n
c) Assemblers and Interpreters. d
subtractive colors. 4+8
10
l0x