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




31.A constructor may be _____
A. provided automatically by C++
B. written by you
C. either (a) or (b).
D. neither (a) nor (b).

32.Software that can be used in applications other than the one for which it was originally written is called
A. recyclable
B. inherited
C. reusable
D. cheating

33.When the compiler cannot differentiate between two overloaded constructors, they are called______
A. overloaded
B. destructed
C. ambiguous
D. dubious

34.A function that is prototyped as double calculate(int num); may______
A. receive an integer constant such as 5
B. receive an integer variable
C. either (a) or (b)
D. neither (a) nor (b)

35.Passing a variable pointer as a constant _____
A. protects the contents pointed to by the pointer from change
B. eliminates the need to name the pointer in the function
C. eliminates the need to give the pointer a type in the function
D. causes a copy of the pointer to be produced in the function

«»



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