-
How do you make a class not instantiable
A) Making class as AbstractB) Having a Private constructorC) Making the class sealedD) Both A & B
-
-
Divide Two Numbers Without Using Division and Modulus Operator
Write C# code to divide two numbers without using the division and modulus operator
-
Advantage of avl tree over binary search tree.
What is advantage using avl tree instead of using binary search tree ?
-
-
How do I create a Delegate/MulticastDelegate?
C# requires only a single parameter for delegates: the method address. Unlike other languages, where the programmer must specify an object reference and the method to invoke, C# can infer both pieces of information by just specifying the method's name. For example, let's use System.Threading.ThreadStart: Foo MyFoo = new Foo();ThreadStart del = new ThreadStart(MyFoo.Baz);This means that delegates can...
-
Second maximum number
how to find out second maximum number in C#?
-
Object Oriented and Object Based Language
Explain What are Object Oriented Language and Object Based Language
-
-
Reference variable of Interface
It is possible to create the reference variable of an Interface which is 100% abstract in nature.Then why it is not possible to create a reference of an Abstract class?
-
C# Data Table Multiple Rows
You have multiple rows in C# data table and you have to save it in database using just one call, How will you do it?
In a multilevel hierarchy how are the constructors are called
A) TopDownB) BottomUpC) None
Advantages of static class over class ?
When to use static class and when to use normal class ?
The following code fails. Why?
int a = 5; int b = 5; object oa = a; object ob = b; Debug.Assert(oa == ob, "oa is not equal ob");
Following are the collections in C#:
Skill/Topic: AdvancedA) structsB) enumC) dictionariesExplanation: Ans. b & c. a isn’t a collection .
Any process can be divided into multiple
Skill/Topic: AdvancedA) ProgramsB) ThreadsC) Application domains
Describe the accessibility modifier protected internal.
It is available to derived classes and classes within the same Assembly (and naturally from the base class it is declared in).
Default Access Specifer
What is default access specifer of a class in C#? Is it internal or private?class foo{ int Var; }In the above code snippet. What is the default access specifier for the variable Var.
Which of the following is not a C# reserved keyword
A) IsB) AsC) InD) Of
Ans