Questions and Answers


  1. What do vectors represent?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Vectors are sequence containers representing arrays that can change in size.


  1. Which are the parameters for the content of the buffer?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The contents of the buffer are initialized using the values from the iterator range supplied to the constructor by the start and finish parameters.



  1. Which of the following type does the container should define?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Every container must define an iterator type. Iterators allow algorithms to iterate over the container’s contents.


  1. How can the member functions in the container be accessed?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The container manages the storage space for its elements and provides member functions to access them, either directly or through iterators which reference objects with similar properties to pointers.



  1. Which is used for manually writing lookup table?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    std:map