Classes and Data Abstraction Multiple Choice Questions Test 1 Tests pdf Download

Practice classes and data abstraction multiple choice questions (MCQs), c++ test 1 online to learn. Practice classes and data abstraction MCQs questions and answers on classes and data abstraction, class scope and class members with answers. Free classes and data abstraction quiz, online study guide has answer key with choices as destructor, constructor, inline and end of line of multiple choice questions (MCQ) as when an object goes out of scope, which function is called automatically to test learning skills. Study to learn classes and data abstraction quiz questions to practice MCQ based online exam preparation test.

MCQ on Classes and Data Abstraction Quiz pdf Download Test 1

MCQ. When an object goes out of scope, which function is called automatically?

  1. Constructor
  2. Destructor
  3. Inline
  4. End of line

B

MCQ. Destructors do not receive parameters and do not

  1. Return values
  2. Initialized
  3. Compiled
  4. None of them

A

MCQ. Scope resolution operator is denoted by

  1. :
  2. : :
  3. ?
  4. ??

B

MCQ. A class data members and member functions belongs to

  1. To file scope
  2. To that function scope
  3. That class scope
  4. All of them

C

MCQ. Passing arguments to a destructor, or specifying return type to destructor, causes

  1. Logical error
  2. Syntax error
  3. Run time error
  4. Fatal error

B