As an Amazon Associate I earn from qualifying purchases.

DBMS Notes and Technology Articles

Object Oriented Programming Quizzes Online MCQs PDF Download eBook 59

Practice Object Oriented Programming quiz questions, object oriented programming multiple choice questions and answers PDF to prepare web development exam worksheet 59 for online certificate programs. Practice "Advanced Topics in C#" quiz, 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

D

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

D

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.

C

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

B

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

D