R

Ram Sharma • 193.86K Points
Coach

Q. Struct’s data members are ____________ by default.

  • (A) Default
  • (B) Private
  • (C) Public
  • (D) Protected
  • Correct Answer - Option(B)
  • Views: 189
  • 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. Which is the correct for() statement to run an infinite loop?

Q. Which of the following are NOT true about .NET Framework? 1. It provides a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or executed remotely. 2. It provides a code-execution environment that minimizes software deployment and versioning conflicts. 3. It provides a code-execution environment that promotes safe execution of code, including code created by an unknown or semi-trusted third party. 4. It provides different programming models for Windows-based applications and Web-based applications. 5. It provides an event driven programming model for building Windows Device Drivers.

Q. Polymorphism occurs when the methods of the child class.

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

Q. Which modifier is used to while redefining an abstract method by a derived class in C#?

Q. Which of the following statements is correct?

Q. Which of the following statements are correct? 1. Instance members of a class can be accessed only through an object of that class. 2. A class can contain only instance data and instance member function. 3. All objects created from a class will occupy equal number of bytes in memory. 4. A class can contain Friend functions. 5. A class is a blueprint or a template according to which objects are created.

Q. In which of the following collections is the Input/Output index-based? 1. Stack 2. Queue 3. BitArray 4. ArrayList 5. HashTable

Q. What is String.Length in C#?

Q. Which type of class does not have its own objects but acts as a base class for its subclass in C#?

Learn All C# MCQs


Question analytics