Object Oriented Programming Using C++ - Section 6 Multiple Questions and Answers.




26.Which is true?
A. Coincidental cohesion is stronger than procedural cohesion
B. Logical cohesion is stronger than coincidental cohesion
C. Sequential cohesion is weaker than temporal cohesion
D. The weakest cohesion is functional

27.A predefined function that may be used to handle memory allocation errors is
A. handle_error
B. set_new_handler
C. new_fix
D. memory_error

28.A function in a derived class that has the same name as a function in the parent class _____
A. will cause an error message to display
B. will override the base class function
C. will be overridden by the base class function
D. will execute immediately after the base class function executes

29.The _____ function returns the uppercase equivalent of a character
A. caseupper
B. charupper
C. toupper
D. uCase

30.When you instantiate a derived class object, a constructor for the derived class _____
A. is not called
B. is called prior to the base class constructor
C. is called simultaneously with the base class constructor
D. None of the above

«»



Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers