How To Exam?

a knowledge trading engine...


University of Mumbai 2006 B.Sc Information Technology TY IT C# Regular - Question Paper

Tuesday, 16 July 2013 06:15Web



Duration -3 Hours




Marks – 100



Want a complete free solved hard copy call us @ 9967590707


Question: -1

Write a short note on: -
1. Multiple main methods.
2. Boxing and Unboxing.
3. Switch statement.
4. Copy Constructor.
5. Command Line argument.

Question: -2

1. Create a class name double. This class contains 3 double numbers. Overload +,-,*, / operator so that can be applied to the object of the class double. Write a c# program to test it.
2. discuss the use of break, goto and continue on statement with suitable examples.
3. Write a void kind method that take 2 integer kind value parameter and 1 integer kind out parameter and returns the product of 2 parameters through the out parameter. Write a program to test its working.

Question: -3

1. discuss the subsequent method of string class with suitable example:-
a) Substring
b) Compare
c) Insert
d) IndexOf
2. What do you mean by exception? discuss with example exception handling mechanism.
3. discuss method overloading with suitable example.

Want a complete free solved hard copy call us @ 9967590707


Question: - 4

1. List various kind of operator in C#. discuss them with suitable example.
2. Create a class example to hold 1 integer value. Include a contractor to display the message "Object is created" and a destructor to display the message "Object is destroyed". Write a C# program to demonstrate the creation and destruction of object of example class. Also discuss it.
3. What is an event? define the syntax of event declaration. Write a C# program to illustrate event handling.

Question: - 5

1. What is structure? discuss it with example.
2. discuss inclusion polymorphism with proper example.
3. What is interface? discuss explicit interface with example. Differentiate class and structure.

Question: -6

1. discuss visibility modifier for class member with example.
2. What is enumerator? Write a program to illustrate the concept of enumerator.
3. discuss the concept of array with example.
4. discuss the subsequent method of array.
a) SetValue
b) Clear
c) GetLength

Want a complete free solved hard copy call us @ 9967590707


Question: -7

a) What is the output of the following?
1. int i ,j
for(I =0,j=100j-i>10j-=10,i+=2)
Console,WriteLine("C#")
2. int cnt, i
i = 100
cnt = i
while(cnt + I > 100)
console, WriteLine("cnt="+ "I ="+i)
3. class super
{
Public void add(int x,int y)
{
Int z = x+y
Console.WriteLine("Addition of"+x+"and"+y + "is "+z)
}
public virtual void sub(int x, int y)
{
}
class sub : super
{
public new void add(int x, int y)
{
int z = x + y +100
console, WriteLine("Addition off" + x +"and"+ y +"is "+z)
public override void sub (int x, int y)
}
Int z = y – x
Console, WriteLine("Subtraction of " + y + "and" + x "is "+z)
}
}
class example
{
Public static void Main()
}
super sp= new super()
sp.add(10,20)
sp.sub(10,20)
sp = new sub()
sp.add(10,20)
sp.sub(10,20)
}
}
b) Write your own exception NumberNotInRange. Write a C# program that throws NumberNotInRange exception if number entered by user is not in the range one to 100.
c) What is difference ranging from reference and value parameter? Illustrate it using a C# program.

Want a complete free solved hard copy call us @ 9967590707



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER University of Mumbai 2006 B.Sc Information Technology TY IT C# Regular - Question Paper