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




11.The cout << sales[0] + sales[1]; statement will______
A. display 22000
B. display 10000 + 12000
C. display sales[0] + sales[l]
D. result in an error

12.The most efficient data type for a variable that stores the letter C is the _____ data type
A. Character
B. Double
C. Float
D. Long Integer

13.The C++ operator used to allocate memory is _________
A. mem
B. allocate
C. new
D. create

14.Assume that your version of C++ can recognize only the first 8 characters of an identifier name, through identifier names may be arbitrarily long. Which of the following identifier names is not distinct:
A. list, list2
B. address, Address
C. identifier_l, identifier_2
D. answer, ANSWER

15.Object is to class as _____
A. library is to book
B. mother is to daughter
C. Plato is to philosopher
D. president is to Lincoln

«»



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