A) Constructors should have the same name as class nameB) Constructors have to be public so that class can be instantiatedC) Constructors can not be overloadedExplanation: Constructors can be overloaded
Latest Answer: Two statements are INVALID: B -- since constructors can be protected / private. A class with a protected constructor can be instantiated through a derived class. A class with a private constructor can be instantiated through a friend class / friend function.C ...
A) TrueB) FalseExplanation: There can be static constructors
Latest Answer: False.Constructors can be static only for static members of class ...
A) TrueB) False
Latest Answer: There is no need to avoid throwing exceptions from finally block as a matter from any parts of the code. The main idea of throwing exception is to inform caller of this block of the code about the execption. Imagine a class library may have ...
A) TrueB) FalseExplanation: It is possible and such delegates are called as Multicast delegates
Latest Answer: FalseIn some cases you may want to call not just one, but two or more methods through a single delegate. This is known as multicasting. You accomplish multicasting by encapsulating the various methods in delegates, and then you combine the delegates using ...
A) TrueB) False
Latest Answer: #2 is right and gave acurate definition of event and event handler but since we declare a event using delegate so we usually say a event is a delegate but from the declaration we can see what is a delegate is the eventhandler. ...
Which preprocessor directive are used to mark that contain block of code is to be treated as a single block
A) # define & #undefB) # Region & #EndRegionC) #Line
A) Enclosed with in [ ]B) Enclosed with in ( )C) Enclosed with in { }
Latest Answer: Ans: A. They are enclosed with in []. ...
A) StringB) StringBuilderC) Both
Latest Answer: Answer B is correct. StringBuilder class is preferred for performing repeated operations on string since its value is mutable. String class represents a text value which is immutable. All operations on string class which appear to be modifying its value ...
A) System.TextB) System.IOC) System.StringBuilder
Latest Answer: System.Text name space should be used. ...
A) Append ( )B) Insert( )C) Replace ( )D) Substring( )
Latest Answer: Answer: DSubString() is not a method of StringBuilder class.For the rest, here are the details.....System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("Kals"); //string value to be appendedsb.Insert(0, ...
View page << Previous 9 10 11 12 [13] 14 15 16 17 18 Next >>

Go Top