Jan 06
Jan 06
No... 7 , CS761
r n.NEW SCHEME
... .
~n. ..,. AT ~LORf'
.. . ...,..7(, , ..'
Reg.. No.r
1. (a) Explain the basic building blocks of.N ET frame work. You must highlight mainly
about ClS, CTS,~lR. and Base class libraries. (12 Marks)
(b) What isthe significance Cil or Il for the execution of any .N ET aware language.
Use appropriate language to support your answer. (8 Marks)
2. (a) Design a e # method Add Ints ( ) to add 5 integers (I nt 32) that are read from
the keyboard and send the result and a flag (true or false) indicating successful
addition or an error to the calling program, say Main ( ). You must use appropriate
parameter passing mechanism. (10 Marks)
(b) Explain with examples the e # operators: is, as, and type of (10 Marks)
4. (a) Using methods in System. String class, design a e # static method which replaces
all occurrences of the word "vtu" with "VTU". (8 Marks)
Add appropriate constructor and also a method to hike the marks by 10%to only
CSEstudents. Show creation of some student objects and the way to call these
methods. (12Marks)
5. (a) What are the basic components of object oriented programming and how are
they implemented? Give examples. (8 Marks)
(b)' What do you understand by exceptions in e #? Write a e# program to build
a custom exception which raises an exception when the argument passed is a
negative number. (12Marks)
6. (a) How do you build cloneable and comparable objects in e# ? Give examples.
(10 Marks)
(b) Design a linked list class in e # with methods to insert and delete nodes. The list
should have the capability to store any type of data. (lO Marks)
Contd 2
; Page-No... 2
~~,~''I''"
~f' ,..,.-
' , ,'O,e",:" ,'."
"
' '~'i:"
.. :': CS761 ~
~ ';1 /:,: :;7
7. (a) Explain single cast a~ultip,9~t .dEJJe,gq~Q,§.J.IJ;P
# with examples. (10 Marks)
(b) ,Draw a' C# class, tp, u~e delegates to sort an integer array in ascending or
, descending'order. v6u must use the comparator delegate concept. (10Marks)
8. (cl)' .Wrtte~th,e.'$t$psjlj\folved. i/'1'blJilding Q;sh'ared :,qs$$mtplY:'U't1d~r.-:'NiE~,Per1vlrQnment.
(10 Marks)
r"" ", " ",'" 'f ! ,. .
(b) Writenote oN: ,'~.!' 'd;. '
,.t,.
'.', ~,".~ '.J1. .
i) EventS' ih",(tff- i)
" ". .
** * **
"
,.,
'.
"1..",
" i'