Standard Library


  1. What is the use of <exception> header











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Contains the standard exception files.


  1. Pick out parameter for rehash method in unordered_set in c++?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    count is used to return the new number of buckets.



  1. What is meant by standard c++ library?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    It is the collection of class definitions for standard data structures. This part of the library was derived from the Standard Template Library.


  1. Pick out the wrong header file.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    <process>



  1. What is the output of this program?
    #include <iostream>
    #include <list>
    #include <string>
    using namespace std ;
    typedef list<string> ListString;
    int main()
    {
    ListString :: iterator k;
    ListString process1;
    process1.insert(process1.end(), "First");
    process1.insert(process1.end(), "Second");
    ListString process2(process1);
    ListString process3(3, "Third");
    ListString process4(++process3.begin(),
    process3.end());
    cout << "Process:";
    for (k = process1.begin(); k != process1.end(); ++k)
    {
    cout << " " << *k << " ";
    }
    cout << "\nProcess:";
    for (k = process2.begin(); k != process2.end(); ++k)
    {
    cout << " " << *k << " ";
    }
    cout << "\nProcess:";
    for (k = process3.begin(); k != process3.end(); ++k)
    {
    cout << " " << *k << " ";
    }
    cout << "\nProcess:";
    for (k = process4.begin(); k != process4.end(); ++k)
    {
    cout << " " << *k << " ";
    }
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    In this program, We used the list to manipulate the given value.