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




21.A pattern for creating an object is called a(n) _____
A. class
B. attributes
C. private
D. public

22.An asterisk placed after a data type means .
A. array to
B. pointer to
C. address to
D. located to

23.An object is a(n) _____ of a class
A. owner
B. function
C. definition
D. instance

24.Which of the following statements creates and initializes a pointer named salesPtr?
A. salesPtr = NULL;
B. *salesPtr = "";
C. float &salesPtr = NULL;
D. float *salesPtr = NULL;

25.With communicational cohesion
A. a tasks and the data are related
B. the tasks are related; the data are not
C. the data are related; the tasks are not
D. the tasks and the data are unrelated

«»



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