C++ Programming Questions Answers - Set 2
-
29. 78. If new operator is used, then the constructor function is ?
- Copy constructor
- Default constructor
- Static constructor
- Dynamic constructor
Answer :
Option D
-
30. Which is more memory efficient ?
- structure
- union
- both use same memory
- depends on a programmer
Answer :
Option B
-
31. Only one copy of the class is inherited, when it is defined as ?
- virtual
- public
- static
- private
Answer :
Option A
-
32. What is default visibility mode for members of classes in C++ ?
- Private
- Public
- Protected
- Depends
Answer :
Option A
-
33. Queues are based on ?
- LIFO
- FIFO
- LILO
- FILO
Answer :
Option B
-
34. What is class in c++ ?
- When you define a class, you define a blueprint for a data type.
- When you define a class, you make get more funtionality.
- When you define a class, you define the logic.
- When you define a class, you make debugging.
Answer :
Option A
-
35. When a structure refers to itself, it is known as ?
- encapsulated structure
- nested structure
- recursive structure
- self-referential structure
Answer :
Option D