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




16.Assume a class Derv that is privately derived from class Base. An object of class Derv located in main() can access
A. public members of Base
B. protected members of Base
C. private members of Base
D. public members of Derv

17.Which of the following is an access specifier?
A. particular
B. shielded
C. protected
D. safe

18.Machine code is _____
A. edited code
B. source code
C. the 0s and 1s that the computer can understand
D. both (b) and (c)

19.The contents of two pointers that point to adjacent of type float differ by
A. one bytes
B. two bytes
C. three bytes
D. four bytes

20.Which of the following is a valid condition for an if statement? (The condition should be both syntactically and logically valid.)
A. (age) > 65
B. (age > 0 and < 10)
C. (sales > 500 && < 800)
D. (sales > 100 && sales <= 1000)

«»



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