C++ Programming Question and Answers

46. What is the type of 'this' pointer?
 
  • It is a constant pointer type.
  • It gets created when a non static member function of a class is called this pointer.
 
Your Name Your Email-ID
Your Answer
47. What is the difference between late binding and early binding?
 
  • Late binding refers to functions calls that are not resolved until run time while early binding refers to the events that occur at compile time.
  • Late binding occurs through virtual functions while early binding takes place when all the information needed to call a function is known at the time of compiling.
  • Early binding increases the efficiency. Some of the examples of early binding are normal function calls, overloaded function calls, and overloaded operators etc.
 
Your Name Your Email-ID
Your Answer
48. What is Standard Template Library (STL)?
 
  • 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.
 
Your Name Your Email-ID
Your Answer
49. When is the variable called as garbage?
 
  • When the variables get undefined values known as garbage.
 
Your Name Your Email-ID
Your Answer
50. When are the variables to be declared?
 
  • Declaration statement variables need to be declared and defined before they are used in a program.
  • Declaration of a variable introduces a variable's name and its associated data type.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 10 of 15