M

Mr. Dubey • 52.30K Points
Coach

Q. A static constructor_____________.

  • (A) Is executed when the class is loaded.
  • (B) Can be accessed through an object name.
  • (C) Can be executed any number of times.
  • (D) Can have its own destructor.

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.

Related MCQs on C#

Q. The following namespaces (System.Data.OleDB, System.Data.SqlClient, System.Data.Odbc, System.Data.OracleClient) include classes for different:

Q. Which of the following is the correct ways to set a value 3.14 in a variable pi such that it cannot be modified?

Q. A variable which is declared inside a method is called a________variable

Q. ________causes the loop to continue with the next iteration after skipping any statements in between.

Q. Which of the following statements are correct about arrays used in C#.NET? 1. Arrays can be rectangular or jagged. 2. Rectangular arrays have similar rows stored in adjacent memory locations. 3. Jagged arrays do not have an access to the methods of System.Array Class. 4. Rectangular arrays do not have an access to the methods of System.Array Class. 5. Jagged arrays have dissimilar rows stored in non-adjacent memory locations.

Q. Which array method is used to sort an array alphabetically or in an ascending order in C#?

Q. Which of the following are valid .NET CLR JIT performance counters? 1. Total memory used for JIT compilation 2. Average memory used for JIT compilation 3. Number of methods that failed to compile with the standard JIT 4. Percentage of processor time spent performing JIT compilation 5.Percentage of memory currently dedicated for JIT compilation

Q. The Default value of Boolean Data Type is?

Q. The purpose of JIT compiler is to convert____________.

Q. Which of the following is true about dispose() method?

Learn All C# MCQs