-
Following are the collections in C#:
Skill/Topic: AdvancedA) structsB) enumC) dictionariesExplanation: Ans. b & c. a isn’t a collection .
-
When do you absolutely have to declare a class as abstract ?
(as opposed to free-willed educated choice or decision based on UML diagram)? When at least one of the methods in the class is abstract. When the class itself is inherited from an abstract class, but not all base abstract methods have been over-ridden.
-
All .NET code have to be CLS compliant
Skill/Topic: IntermediateA) TrueB) False
-
Operator Overloading
Why should we have to overload ==(equals) and !=(not equals) operators in same program? If any one is not overloaded it gives error. Same with =?
-
Late and early binding
which one best in late binding and early binding? What is the difference between them ?
-
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?
-
Any process can be divided into multiple
Skill/Topic: AdvancedA) ProgramsB) ThreadsC) Application domains
-
-
How do I get deterministic finalization in C#?
In a garbage collected environment, it's impossible to get true determinism. However, a design pattern that we recommend is implementing IDisposable on any class that contains a critical resource. Whenever this class is consumed, it may be placed in a using statement, as shown in the following example: using(FileStream myFile = File.Open(@"c:temptest.txt", FileMode.Open)){int fileOffset = 0;while(fileOffset...
-
-
How can you sort the elements of the array in descending order
A) Sort methodsB) Reverse methodsC) By calling Sort and then Reverse methodsD) Can’t sort in descending
-
Abstract usage in C#
Can any one give real time example for abstract class and virtual function plz in c#(.NET)
-
Which are the important features of IL
A) Use of attributesB) Strong data typingC) Object orientation & use of interfaceD) All of the above
-
-
Which of the following is used to denote comments in C#?
Skill/Topic: IntermediateA) /* */B) //C) ///Explanation: /// is used from XML documentation
-
Program in c#
Need a program to search a word with all its Synonymous
ex : If I write screen find all that match of screen , lcd, monitor ,------ and so on -
Which of the following is not a member of System.Object?
a)Instance equalsb)Static Equalsc)Instance referenceequalsd)Instance Gettype
-
-
Which method is actually called ultimately when Console.WriteLine( ) is invoked
A) Append( )B) AppendFormat( )C) Tostring( )
-
In C# events are actually a special form of delegates
A) TrueB) False
C# Interview Questions
Ans