C++ Programming Questions Answers - Set 2
-
23. Which of following valid option will not return a value in c++ ?
- free
- void
- empty
- null
Answer And Explanation
Answer: Option B
Explanation:
-
24. Constructors has return type void ?
- True
- False
Answer And Explanation
Answer: Option A
Explanation:
-
25. Enumerators are stored by the compiler in ?
- string
- integer
- float
- any of above
Answer And Explanation
Answer: Option B
Explanation:
-
26. Enumerator will allocate the memory when its variables are defined.
- True
- False
Answer And Explanation
Answer: Option A
Explanation:
-
27. Data members and member functions are enclosed within ?
- union
- structure
- class
- array
Answer And Explanation
Answer: Option C
Explanation:
-
28. & operator is ?
- address operator
- indirection operator
- logical and
- logical or
Answer And Explanation
Answer: Option A
Explanation: