MCQsLlearn App Free MCQsLearn App Download - Android - iOS
As an Amazon Associate I earn from qualifying purchases.

DBMS Notes and Technology Articles

Object Oriented Programming MCQ with Answers PDF Download eBook - 59

Solve Object Oriented Programming multiple choice questions and answers PDF, object oriented programming quiz answers PDF to learn web development worksheet 59 for online mock test. Practice Advanced Topics in C# quiz questions, object oriented programming Multiple Choice Questions (MCQ) to solve c sharp test with answers for online computer science degree. Free object oriented programming MCQs, functions, arrays, disposable objects, structures, object oriented programming test prep for programming certifications.

"Multiple inheritance leaves room for a derived class to have", object oriented programming Multiple Choice Questions (MCQ) with choices private members, dynamic members, public members, and ambiguous members for information technology masters programs. Learn advanced topics in c# questions and answers with free online certification courses for IT certifications.

Object Oriented Programming Questions and Answers PDF Download eBook 59

Object Oriented Programming Quiz

MCQ: Multiple inheritance leaves room for a derived class to have

  1. dynamic members
  2. private members
  3. public members
  4. ambiguous members


Structures Quiz

MCQ: A structure can

  1. A struct can contain properties.
  2. A struct can contain constructors.
  3. A struct can contain protected data members.
  4. Both a and b


Disposable Objects Quiz

MCQ: An object that is implementing IDisposable is passed to your class as an argument. Should you wrap the element in a using statement

  1. Yes, otherwise a memory leak could happen
  2. No, you should call Close on the object.
  3. No, you should use a try/finally statement and call Dispose yourself.
  4. No, the calling method should use a using statement.


Arrays Quiz

MCQ: The advantage of using 2D jagged array over 2D rectangular array is

  1. Easy initialization of elements
  2. that it allows unlimited elements as well as rows which had ?0? or are empty in nature
  3. both a and b
  4. easy implementation


Functions Quiz

MCQ: Select an output for the following code<br/> <code> static void Main(string[] args) { int a = 5; fun1 (ref a); Console.WriteLine(a); Console.ReadLine(); } static void fun1(ref int a) { a = a * a; } </code>

  1. 5
  2. 0
  3. 20
  4. 25