C++ Interview Questions and Answers
Ques 76. What is an explicit constructor?
A conversion constructor declared with the explicit keyword. The compiler does not use an explicit constructor to implement an implied conversion of types. It?s purpose is reserved explicitly for construction.
Ques 77. What is the Standard Template Library (STL)?
Ans. A library of container templates approved by the ANSI committee for inclusion in the standard C++ specification.
A programmer who then launches into a discussion of the generic programming model, iterators, allocators, algorithms, and such, has a higher than average understanding of the new technology that STL brings to C++ programming.
Ques 78. Describe run-time type identification.Ans.
The ability to determine at run time the type of an object by using the typeid operator or the dynamic_cast operator.
Ques 79. What problem does the namespace feature solve?Ans.
Multiple providers of libraries might use common global identifiers causing a name collision when an application tries to link with two or more such libraries. The namespace feature surrounds a library?s external declarations with a unique namespace that eliminates the potential for those collisions.
This solution assumes that two library vendors don?t use the same namespace identifier, of course.
Ques 80. Are there any new intrinsic (built-in) data types?Ans.
Yes. The ANSI committee added the bool intrinsic type and its true and false value keywords.
3) Describe run-time type identification. 4) What problem does the namespace feature solve? 5) Are there any new intrinsic (built-in) data types? " />
Most helpful rated by users: