C++ Programming Advanced Level Test! Trivia Quiz

57 Questions | Total Attempts: 450

SettingsSettingsSettings
Please wait...
C++ Programming Advanced Level Test! Trivia Quiz

Below is a C++ programming advanced level test that is perfect for testing out just how ready you are to tackle the upcoming certification exam and your capability to deliver the best service to your clients. Give it a try and see just how much you know about the most popular computer programming language. All the best, and keep practicing!


Questions and Answers
  • 1. 
    A derived class inherits the __________ of its base class.
  • 2. 
    When both a base class and a derived class have constructors, the base class's constructor is called __________ (first/last).  
  • 3. 
    When both a base class and a derived class have destructors, the base class s construc- tor is called __________ (first/last).  
  • 4. 
    An overridden base class function may be called by a function in a derived class by using the __________ operator.  
  • 5. 
    When a derived class redefines a function in a base class, which version of the function  do objects that are defined of the base class call? __________
  • 6. 
    A(n) __________ member function in a base class expects to be overridden in a  derived class.
  • 7. 
    __________ binding is when the compiler binds member function calls at compile time.
  • 8. 
    __________ binding is when a function call is bound at runtime.  
  • 9. 
    __________ is when member functions in a class hierarchy behave differently, depending  upon which object performs the call.  
  • 10. 
    When a pointer to a base class is made to point to a derived class, the pointer ignores  any __________ the derived class performs, unless the function is __________.   
  • 11. 
    A(n) __________ class cannot be instantiated.  
  • 12. 
    A(n) __________ function has no body, or definition, in the class in which it is declared.
  • 13. 
    A(n) __________ of inheritance is where one class is derived from a second class,  which in turn is derived from a third class.  
  • 14. 
    __________ is where a derived class has two or more base classes.
  • 15. 
    In multiple inheritances, the derived class should always __________ a function that  has the same name in more than one base class.
  • 16. 
    The base class's access specification affects the way base class member functions may access base class member variables.
    • A. 

      True

    • B. 

      False

  • 17. 
    The base class's access specification affects the way the derived class inherits members of the base class.
    • A. 

      True

    • B. 

      False

  • 18. 
     Private members of a private base class become inaccessible to the derived class.
    • A. 

      True

    • B. 

      False

  • 19. 
    Public members of a private base class become private members of the derived class.
    • A. 

      True

    • B. 

      False

  • 20. 
    Protected members of a private base class become public members of the derived class.
    • A. 

      True

    • B. 

      False

  • 21. 
    Public members of a protected base class become private members of the derived class
    • A. 

      True

    • B. 

      False

  • 22. 
    Private members of a protected base class become inaccessible to the derived class.
    • A. 

      True

    • B. 

      False

  • 23. 
    Protected members of a public base class become public members of the derived class.
    • A. 

      True

    • B. 

      False

  • 24. 
    The base class constructor is called after the derived class constructor.
    • A. 

      True

    • B. 

      False

  • 25. 
    The base class destructor is called after the derived class destructor.
    • A. 

      True

    • B. 

      False

Back to Top Back to top