Standard Library
- What is the use of <exception> header
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Contains the standard exception files.
- Pick out parameter for rehash method in unordered_set in c++?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
count is used to return the new number of buckets.
- What is meant by standard c++ library?
-
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.
- Pick out the wrong header file.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
<process>
- 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 << " ";
}
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
In this program, We used the list to manipulate the given value.