C++ Programming Questions Answers - Set 2
- 
						 
22. Can we define array of classes in c++ ?
- Yes
 - No
 
Answer :
Option A
 - 
						 
23. An explicitly defined destructor function
- may be virtual
 - may not be virtual
 - will always be virtual
 - will never be virtual
 
Answer :
Option A
 - 
						 
24. && means ?
- Logical OR
 - Bitwise OR
 - Logical AND
 - Bitwise AND
 
Answer :
Option C
 - 
						 
25. How we can access data members using objects ?
- [email protected]
 - object*datamember
 - object->datamember
 - object.datamember
 
Answer :
Option D
 - 
						 
26. What is true about Constructor ?
- Its name is plural of class name.
 - Its name has * symbol before it.
 - Its name is same as of class name.
 - Its name has # symbol before it.
 
Answer :
Option C
 - 
						 
27. Which of the following keywords are used to control access to a class member ?
- protected
 - switch
 - goto
 - for
 
Answer :
Option A
 - 
						 
28. Data members and member functions are enclosed within ?
- union
 - structure
 - class
 - array
 
Answer :
Option C
 
