C Sharp Jun 2011
C Sharp Jun 2011
06CS/IS761
Max. Marks:100
PART
-A
(10 Marks) (04 Marks) (06 Marks)
o
(n
C)
la.
b.
c.
Explain features and building blocks of . Net framework. Write a note on. Net name space. Explain the role of the common intermediate language.
d
L
c)
E9
d9
2a.
b
c.
-o
;,'
(06 Marks) Discuss the difference between value type and reference types. Explain how CSC . exe compiler is used to build C# application. Explain any five flags with (06 Marks) appropriate examples. (08 Marks) Write a C# program to demoustrate use of Static and Read- only variables. (06 Marks) Explain boxing and unboxing with examples. Explain the functions of system object class. Give overriden definition for Tostring( ) and (08 Marks) Equals( ). an example, with reference to C #. Explain the following terms, with (06 Marks) i) foreach ii) params iii) verbatim.
.= c.l cBs
b ()tr -co o;
6=
3a.
b.
c.
9.0
3s
bu
do o.o bOc
-o >!
a6 or
4a.
b.
c.
What is inheritance? How is it implemented in C#? State and explain the characteristics ofabstract classes. Write a program to describe sealed class and sealed method.
PART
B
(05 Marks) (07 Marks) (08 Marks)
9=
6rJ
^= tro.
o'i to alE
a. b. c. a. b. c. a. b. c. a. b. c d.
Explain the different methods of file system. GC type. Explain with examples interface hierarchy. What is an interface in C# and how is it different from polymorphir* i1Q++? Define the following keywords with program example : i) try ii) throw iii) catch iv) finally. Why is proper ordering of catch blocks necessary in C#? Write C# application to illustrate handling multiple exceptions. What are the main advantages of C# events? What are delegates? Explain the members of system. Multicast delegates program to implement multicasting. What are the differences between private assembly and shared assemblies?
^.= >\q
ooo
0= *o
3fi
trbo
tr>
=o o
(..)
<
Give a small
(10 Marks) (05 Marks)
-.1 6i
6.)
o.
(20 Marks)