Professional Documents
Culture Documents
1 CS761
USN
I NEW SCHEME I
Seventh Semester B.E. Degree Examination, May I June 2006
Computer Science Engjgeering
C# Programming & .NET Concel»ts
Time: 3 hrs.] [Max. Marks: 100
Note: 1.Answer any FIVE full questions.
2. Diagrams if any, must be neatly drawn.
3. Programs must be neatly documented.
t a. What is .NET? Discuss the issues that lead to the genesis of this new platfonn.
(08Marks)
b. With a neat diagram, explain tht important building blocks of .NET platfonn.
(08Marks)
c. Bring out the important differences between single and multifile assemblies.
(04Marks)
2 a. What are namespaces? List and explain the purpose of at least five namespaces.
(07Marks)
b. List and explain the various options available with C# compiler. Also illustrate with
an example, how would you compile a single file assembly that references some
external assembly. (08Marks)
c. What is the role of cordbg utility? Explain the steps involved in debugging a source
file. (05Marks)
Con/d...]
s .
a. LI.st and expiain method access modifiers and method parameter modifiers. For the :1
~
I
latter gIve an examp e lor each . (10Ma
b. What are enumerations? What is the default data type of the members? How would ~
yOUchange the default type? Illustrate with an example. (05Ma
c. What is encapsulation? Explain the two ways of enforcing encapsulation. (OSMa
6 a. What do you understand by the terms Errors, Bugs and Exceptions? Give the
important members of the system Exception class. Illustrate the use of this class in
throwing generic exceptions. (10Ma.
b. Illustrate with an example, how would you build custom exceptions. (10Mar
7 a. What are interfaces? In what way are they better as compared to abstract classes?
Illustrate with an example the use of interfaces as polymorphic agents. (08Mal
b. Distinguish between shallow and deep copy, as applied to cloning. How would you
implement cloning for a custom class using I Cloneable interface? (08Ma
c. Illustrate with an example, the use of I Comparable interface. (04Ma