C Plus Plus Miscellaneous - Study Mode

[#291] Which function is used to check whether the vector is empty or not?
Correct Answer

(A) empty()

[#292] What is the use of adapter in STL in c++?
Correct Answer

(A) To provide interface

[#293] Which of the following will return the new element at the end of container?
Correct Answer

(B) back

[#294] Which operator is used to compare the values to find min and max?
Correct Answer

(A) <

[#295] What will not be called when the terminate() is raised in the constructor?
Correct Answer

(C) destructor