-
All .NET code have to be CLS compliant
Skill/Topic: IntermediateA) TrueB) False
-
-
What is the difference between an interface and abstract class?
In the interface all methods must be abstract; in the abstract class some methods can be concrete. In the interface no accessibility modifiers are allowed, which is ok in abstract classes.
-
Will finally block get executed if the exception had not occurred?
Yes. What is the C# equivalent of C++ catch (…), which was a catch-all statement for any possible exception?
-
-
-
Which of the following is used to denote comments in C#?
Skill/Topic: IntermediateA) /* */B) //C) ///Explanation: /// is used from XML documentation
-
IF a namespace isn't supplied, which namespace does a class belong to
Skill/Topic: IntermediateA) a nameless global namespaceB) SystemC) Windows
-
What is the difference between shadow and override
Override id used for variables and methods but override only used for methods.
-
-
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");
-
Which is not cls compliant built in value type?
Intushortdecimalenum
-
Which of the following is not a member of System.Object?
a)Instance equalsb)Static Equalsc)Instance referenceequalsd)Instance Gettype
-
-
Postbackurl and Navigateurl
What is difference between "Session" and "Session" Objects? What is the use of "postbackurl" and "navigateurl" and the differences between those two things?
-
C# Serializable Keyword
What is the use of serializable keyword in C#?
-
-
How many types of Inheritance is there in C#?
HI,
Can youplz tell me how many types of Inheritance is there in C#?
As per my knowledge these are following but i am not sure
-single level
-multi level
-Hierarchical inheritence
-Hybride inheritence.
there one more inheritence but its not suported by C# that is Multiple inheritence.
is it correct ?plz help me.
-
Second maximum number
how to find out second maximum number in C#?
-
The field variables in a class or a struct in C# are by default given a value of zero
Skill/Topic: BeginnerA) TrueB) False
C# Interview Questions
Ans