R

Ram Sharma • 193.86K Points
Coach

Q.  In C#, by default, the default interface methods are ___.

  • (A) virtual
  • (B) sealed
  • (C) private
  • (D) public
  • Correct Answer - Option(A)
  • Views: 138
  • Filed under category C#

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 reason that C# does not support multiple inheritances is because of ______.

Q. ADO.NET is the data access component of Microsoft’s .NET framework that enables you to

Q. Which of the following statements are correct about exception handling in C#.NET? 1 If an exception occurs then the program terminates abruptly without getting any chance to recover from the exception. 2 No matter whether an exception occurs or not, the statements in the finally clause (if present) will get executed. 3 A program can contain multiple finally clauses. 4 A finally clause is written outside the try block. 5 Finally clause is used to perform cleanup operations like closing the network/database connections.

Q. The out type parameters can be used_______________.

Q. Which of the following statements are correct? 1. We can assign values of any type to variables of type object. 2. When a variable of a value type is converted to object, it is said to be unboxed. 3. When a variable of type object is converted to a value type, it is said to be boxed. 4. Boolean variable cannot have a value of null. 5. When a value type is boxed, an entirely new object must be allocated and constructed.

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

Q. Which Conversion function of ‘Convert.TOInt32()’ and ‘Int32.Parse()’ is efficient? i) Int32.Parse() is only used for strings and throws argument exception for null string ii) Convert.Int32() used for data types and returns directly '0' for null string

Q. Which of the following jobs are NOT performed by Garbage Collector? 1.Freeing memory on the stack. 2.Avoiding memory leaks. 3.Freeing memory occupied by unreferenced objects. 4.Closing unclosed database collections. 5.Closing unclosed files.

Q. Which of the following statements are correct? 1. We can assign values of any type to variables of type object. 2. When a variable of a value type is converted to object, it is said to be unboxed. 3. When a variable of type object is converted to a value type, it is said to be boxed. 4. Boolean variable cannot have a value of null. 5. When a value type is boxed, an entirely new object must be allocated and constructed.

Q. Which of the following statements is correct?

Learn All C# MCQs


Question analytics