TYBSC - Computer Sci
TYBSC - Computer Sci
Seat
No.
4. Attempt either A or B.
A) a) List various types of errors detected by compiler in various phases of
compilation. 2
b) Give any 2 differences between the instructions STOP and END. 2
c) For the following assembly language program, show the entries in various
data structures used by 2-Pass Assembler. 6
START 300
READ A
READ B
RAMA MOVER DREG, A
MOVER CREG, = ‘15’
MULT DREG, = ‘21’
MOVEM CREG, C
BC ANY, AGAIN
DIV AREG, C
LTORG
MOVER AREG, = ‘66’
ADD AREG, B
DIV AREG, = ‘15’
*4318301* -3- [4318] – 301
––––––––––––––––
B/I/13/4,330
*4318305* [4318] – 305
Seat
No.
P.T.O.
[4318] – 305 *4318305*
––––––––––––––––
B/I/13/5,115
*4318303* [4318] – 303
Seat
No.
b) Which type of service would be preferred for credit card verification and
database query ?
f) Which ports are used for transferring a data file and sending e-mail ?
j) Define Routing.
P.T.O.
[4318] – 303 *4318303*
a) Given a 12 bit sequence 110111100101 and a divisor of 1001. Find the CRC.
1) S/ N ratio is 0 dB
2) S/ N ratio is 20 dB.
OR
––––––––––––––––
B/I/13/3,235
*4318304* [4318] – 304
Seat
No.
c) What is Resources ?
f) Which function are used to notify objects that they are being serialized and
unserialised ?
P.T.O.
[4318] – 304 *4318304*
––––––––––––––––––––––––––––
B/I/13/3,875
*4318306* [4318] – 306
Seat
No.
a) Define the object “Employee” with possible attributes and operations with visibility.
g) Define Actor.
P.T.O.
[4318] – 306 *4318306*
––––––––––––––––––––––––––––
B/I/13/3,390
δ 0 1
q0 q1 q2
q1 q3 q4
q2 q5 q1
q3 q3 q4
q4 q5 q1
q5 q3 q4
b) Construct TM for L = {anbmcn/n,m>1}.
c) Differentiate between FA and PDA.
—————————
B/I/13/4,345
j) Justify : “Newly created directory will have two entries automatically in it” ?
P.T.O.
[4318] – 401 -2- *4318401*
a) What is critical section problem ? What are the conditions that must be
7, 5, 6, 2, 9, 5, 7, 6, 2, 7, 6, 5, 2, 7, 2, 7, 8
synchronization
0 750 420
1 1780 535
2 3130 81
3 7070 70
4 6166 320
[4318] – 401 -4- *4318401*
Map the following logical addresses to physical addresses. Consider the first
leftmost digit as segment number.
a) 4666
b) 280
c) 0251
d) 1025
e) 3003 5
ii) List the system calls related with system accounting/information and
explain any two. 3
OR
B) i) Explain Linked and Indexed file allocation methods along with merits and
demerits. 5
ii) Define Hit ratio. Hit ratio of finding page in TLB is 77% hit ratio; It takes
24ns to search TLB, and 90ns to access memory. Compute the effective
access time. 3
iii) List the advantages of multi processor system. 2
______________
B/I/13/9,200
j) Justify : “Newly created directory will have two entries automatically in it” ?
P.T.O.
[4318] – 401 -2- *4318401*
a) What is critical section problem ? What are the conditions that must be
7, 5, 6, 2, 9, 5, 7, 6, 2, 7, 6, 5, 2, 7, 2, 7, 8
synchronization
0 750 420
1 1780 535
2 3130 81
3 7070 70
4 6166 320
[4318] – 401 -4- *4318401*
Map the following logical addresses to physical addresses. Consider the first
leftmost digit as segment number.
a) 4666
b) 280
c) 0251
d) 1025
e) 3003 5
ii) List the system calls related with system accounting/information and
explain any two. 3
OR
B) i) Explain Linked and Indexed file allocation methods along with merits and
demerits. 5
ii) Define Hit ratio. Hit ratio of finding page in TLB is 77% hit ratio; It takes
24ns to search TLB, and 90ns to access memory. Compute the effective
access time. 3
iii) List the advantages of multi processor system. 2
______________
B/I/13/9,200
*4318404* [4318] – 404
Seat
No.
–––––––––––––––––
B/I/13/8,755
P.T.O.
[4318] – 402 -2- *4318402*
2) Consider the following grammar and i/p string. Parse the string using
shift-reduce parser. Show the contents of stack, input and action at each
stage. 3
S → TL ;
T → int / float
L → L, id / id
Input string → int id, id ;
A → b.
————————
B/I/13/8,985
P.T.O.
[4318] – 402 -2- *4318402*
2) Consider the following grammar and i/p string. Parse the string using
shift-reduce parser. Show the contents of stack, input and action at each
stage. 3
S → TL ;
T → int / float
L → L, id / id
Input string → int id, id ;
A → b.
————————
B/I/13/8,985
e) Define cryptanalysis.
c) Which pull protocol is used to retrive message from mail server ? Explain in
detail.
P.T.O.
[4318] – 403 -2- *4318403*
a) Which social issues are important in network security ? Explain any one.
————————
B/I/13/8,705
*4318405* [4318] – 405
Seat
No.
f) Define JAR.
g) “Order in which elements are added to the collection, in same order they will
display when collection object is printed”. Justify.
a) Write a graphics program to accept a string in textfield from the user and
change the font of the string by selecting the font from the font list which
contains available font names.
P.T.O.
[4318] – 405 *4318405*
b) Write a servlet to get information about the server such as name of server,
server port number, server version.
c) Write a Java program to read n strings into Arraylist collection and sort the
elements of collection in descending order (use comparator).
2) Explain the Server socket class and Datagram socket class in Java. Also
state the methods of both classes. 4
2) Create the Hashtable that will maintain the mobile number and student
name. Display the contact list. 4
—————————
B/I/13/9,175
*4318406* [4318] – 406
Seat
No.
P.T.O.
[4318] – 406 *4318406*
a) Hindustan Lever Ltd. (HLL) is the company producing multiple products like
soap, toothpaste, shampoo, etc. Each product requires different raw materials
which are purchased from different suppliers. Company places purchase
orders to different suppliers after receiving purchase indents.
——————
B/I/13/8,685