VTU Previous Question Papers BE CS Seventh Semester C # Programming and .Net January 2010

VTU Previous Question Papers BE CS Seventh Semester

C # Programming and .Net January 2010


Note: Answer any FIVE full questions, selecting at least TWO questions from each part.


1 a. Explain with a neat diagram, the relationship between .Net runtime layer and the base class library.

b. What is the role of .Net type Meta data? Give example.

C.  List and explain intrinsic CTS data types and .Net name spaces in C #.


2 a. What is meant by command line debugger? Write source code in C# to compute the square root of a number passed as a command line argument.

B. How would you create object instance in C #? With examples, describe default assignment of .Net data types.

c. How do you format .Net string and textual output? Give examples.


3 a. Distinguish between value types and reference types with an examples.

b. What is the role of master node, system object?

c.  Explain the following terms, with an example, with reference to C #.

i)      foreach            ii) ref            iii) params           iv) verbatim             v) enum.


4  a. What is boxing and un boxing? Explain with an examples.

b.   How would you enforce encapsulation using accessors and mutators? Explain with examples, class properties and static properties in C #.

c.    Illustrate with an example, polymorphic support in C #.


 5 a. List and explain core members of the system exception type. How would you build custom exception?

b. Write C # application to illustrate handling multiple exceptions.

C. What is meant by object life time? Describe the role of .Net garbage collection, finalization process and Ad Hoc destruction method, with examples.


6 a. Which is the alternate approach to support multiple inheritances? List its major features.

b. Briefly explain, with an example, explicit interface implementation.

c.  Write a program in C # to accept two strings and perform the following operations:

i)   copy string 2 to string 3

ii)   check string 1 ends with “ENGG” or not. If it is true, search character ‘a’ in string 3.

iii) insert “VTU” in string 2 at position 6 and display it.


7  a. With an example, discuss advanced keywords of C # : checked, unchecked, un safe stack alloc, volatile and size of.

b. Write a program in C # to sort and reverse an array of five elements using sort() and reverse ( ) methods.

c.  What do you understand by events and delegates in C #? Give example.


8 a. with a neat diagram, explain physical view and logical view of .Net assemblies.

b. Illustrate with an example, differences between synchronous and synchronous delegates.

c. List the key elements and core CIL tokens of the assembly manifest.

d.   Write short notes on process of building a multi file assembly.

Leave a Comment