C++ Programming Questions Answers - Set 2
-
36. Enumerator will allocate the memory when its variables are defined.
- True
- False
Answer :
Option A
-
37. In C++ Functions can returns ?
- arrays
- reference
- objects
- all of above
Answer :
Option D
-
38. Size of a char is ?
- 1
- 2
- 3
- 4
Answer :
Option A
-
39. The antonym of constructor is ?
- Creator
- Distinct
- Destroyer
- Destructor
Answer :
Option D
-
40. & operator is ?
- address operator
- indirection operator
- logical and
- logical or
Answer :
Option A
-
41. Inheritance is transitive in nature.
- True
- False
Answer :
Option A
-
42. Even if we define a function in a class, then also we need to declare it first.
- True
- False
Answer :
Option B
Explanation:
If we define a function in a class, then also we do not need to declare it first.