C++ STANDARD LIBRARY MCQs Questions Answers

  1. In which classes we can define the list and vector classes?
    A. Abstract classes
    B. child classes
    C. STL classes
    D. String classes
    Ans:
    Answer - Click Here:
    B

    2. By STL how many components it has been kept?
    A. 3
    B. 4
    C.1
    D. unlimited
    Ans:
    Answer - Click Here:
    B

    3. Which of the following are the components of STL?
    A. Algorithms
    B. containers
    C. function, iterators
    D. All of these
    Ans:
    Answer - Click Here:
    D

    4. Which of the following is to provide a different interface for sequential containers?
    A. container adopters
    B. sequence containers
    C. queue
    D. Associative Containers
    Ans:
    Answer - Click Here:
    A

    5. In the given below which of the following file c header files contains the only function for manipulating null-terminated arrays of character?
    A.
    B.
    C.
    D. A&B both
    Ans:
    Answer - Click Here:
    C

    6. Container Adaptors provide a how many interface for sequential containers
    A. 2
    B. 3
    C. 4
    D.1
    Ans:
    Answer - Click Here:
    B

    7. Container Adaptors provide a different interface for sequential containers these are
    A. Queue
    B. priority Queue
    C. stack
    D. all of these
    Ans:
    Answer - Click Here:
    D

    8. The integer ASCII code has a range of.
    A. 0 to 500
    B. 1 to 3000
    C. 0 to 100
    D. 200 to 227
    Ans:
    Answer - Click Here:
    C

    9. Which of the following true about sequence container?
    A. Containers that implements sorted data structures for fast search in O(logn)
    B. Containers that implements data structures which can be accessed sequentially
    C. Containers that implements data structures which can be accessed non-sequentially
    D. none of these
    Ans:
    Answer - Click Here:
    B

    10. Which of the following are implemented through sorted data structures that can be quickly searched (O (log n) complexity)
    A. Associative Containers
    B. sequence container
    C. container adopter
    D. unordered associative containers
    Ans:
    Answer - Click Here:
    A

    11. In C++ how many sequence containers are provided?
    A. 3
    B.1
    C.5
    D.2
    Ans:
    Answer - Click Here:
    C

    12. In C++ how many container adopter are provided?
    A. 2
    B.6
    C.4
    D.3
    Ans:
    Answer - Click Here:
    D

    13. What are the unordered Associative Containers?
    A. implement sorted data structures that can be quickly searched (O(log n) complexity).
    B. implements unordered data structures that can be quickly searched
    C. implements data structures which can be accessed in a sequential manner.
    D. none of these
    Ans:
    Answer - Click Here:
    B

    14. The Unordered Associative Containers are implements unordered data structures that can be quickly searched
    A. unorder-set
    B. unorder-multiset
    C. unorder- map
    D. all of these
    Ans:
    Answer - Click Here:
    D

    15. Which of the following are true about unordered sequence container?
    A. these are implements through unordered data structures that can be quickly searched
    B. these are implements through data structures which can be accessed in a sequential manner
    C.A&B both
    D. these can be implemented through sorted data structures that can be quickly searched (O(log n) complexity).
    Ans:
    Answer - Click Here:
    A

Programming C Plus Plus MCQs Homepage