You are on page 1of 1

06CS/IS761

USN

Seventh Semester B.E. Degree Examinationo June/July 20Ll

C # Programming and "Net


Time:3 hrs.

Max. Marks:100

Note: Answer FIVE full questions, selecting


at least TWO qaestions from each part.

PART

ci

la.
b.

(n

c.

-A

Explain features and building blocks of . Net framework.


Write a note on. Net name space.
Explain the role of the common intermediate language.

(10 Marks)
(04 Marks)
(06 Marks)

C)

c)
L

E9
d9

-o

;,'

bo"
doo
'=+

c.l
.=
cBs

b
()tr
-co
o;

9.0

3s
6=

bu
do
o.o
bOc

2a.
b
c.

3a.
b.
c.

4a.
b.
c.

(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
Explain the following terms, with
example, with reference to C #.
(06 Marks)
i) foreach ii) params iii) verbatim.

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.

(06 Marks)
(08 Marls)
(06 Marks)

-o
>!

a6
or

PART

6rJ

o'i

a.
b.
c.

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++?

to
alE

a.

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.

9=

^=
tro.

3fi

^.=
>\q
ooo

trbo
0=
*o

tr>
=o
o
(..)

<

-.1 6i
6.)

b.
c.
a.
b.
c.

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?

(05 Marks)
(07 Marks)
(08 Marks)

(10 Marks)
(05 Marks)
(05 Marks)
(05 Marks)
:

Give a small
(10 Marks)
(05 Marks)

Z
o

o.

a.
b.
c
d.

Write short notes on

lndexers
Mutable and immutable strings
Enumeration in C#
Garbage collection in . Net.

(20 Marks)
{(*tN.t{(

You might also like