0% found this document useful (0 votes)
78 views2 pages

Jan 06

This document outlines questions for a C# programming and .NET concepts exam. Some key topics covered include: - The basic building blocks of the .NET framework including CLR, CTS, and base class libraries. - The significance of CIL and why it is important for the execution of any .NET language. - Designing C# classes, methods, and programs involving concepts like parameter passing, operators, exceptions, inheritance, polymorphism, and linked lists. - Components of object-oriented programming and how they are implemented in C#. - Using delegates in C# for sorting arrays and building shared assemblies.

Uploaded by

Nikhil Ravi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views2 pages

Jan 06

This document outlines questions for a C# programming and .NET concepts exam. Some key topics covered include: - The basic building blocks of the .NET framework including CLR, CTS, and base class libraries. - The significance of CIL and why it is important for the execution of any .NET language. - Designing C# classes, methods, and programs involving concepts like parameter passing, operators, exceptions, inheritance, polymorphism, and linked lists. - Components of object-oriented programming and how they are implemented in C#. - Using delegates in C# for sorting arrays and building shared assemblies.

Uploaded by

Nikhil Ravi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

OOJ)aftment of tibrRfV

8NM Institute of 1&CiUlO, 1Y

No... 7 , CS761
r n.NEW SCHEME
... .
~n. ..,. AT ~LORf'
.. . ...,..7(, , ..'
Reg.. No.r

Seventh Semester B.E.Degree Examination, January/February 2006


ComputerScience and Engineering
C# Programming and Net Concepts
Time: 3 hrs.) (Max.Marks: 100
Note: Answerany FIVE full questions.

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)

3. (a) What do you understand by 'params' method of parameter passing. Give an


example. (8 Marks)
-
(b) Designa e # class for storing the packets in a router buffer, which is normally
implementedas a Queue. Thepacket isan object whose structureIsas follows:
< PackeLID, HosLIP _Addr, Dst- IP _Addr >
Your class should support printing of packet details and avoid storing of duplicate
packets in the Queue by overloading To String ( ) and Equals () (12 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)

(b) Design a G# program to design a structure:


Student < USN, Name, Marks, Branch> Here, Branch isof type enum, with
, members < eSE, ISE, ELNS, EE, IT >. .

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)

ii) Garbage collection (1 a Marks)

" ". .
** * **

"

,.,

'.

"1..",
" i'

You might also like