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




21.The two parts of a function are the
A. header and footer
B. declarations and statements
C. legs and feet
D. header and body

22.The general principle underlying object-oriented error handling is that a called function should __?
A. neither check for, nor handle errors
B. check for errors but not be required to handle any detected
C. handle errors, but not check for them
D. both check for and handle errors

23.Reference variables and const class member
A. must be assigned values in any derived class
B. must never be initialized in a base class
C. must be initialized, rather than assigned values
D. must not exit if a class is to be a base class

24.The actual arguments cannot he
A. a constant or a variable
B. of a different type from the corresponding formal arguments
C. other functions
D. expressions

25.The function stricmp("Jose", "JOSE") will return _____
A. -1
B. 0
C. 1
D. 2

«»



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