C Plus Plus Miscellaneous - Study Mode

[#571] Which are not full container classes in c++?
Correct Answer

(C) Container adaptor

[#572] Which function is used to get the total capacity of a vector?
Correct Answer

(B) v.capacity()

[#573] What is a pure virtual function in C++?
Correct Answer

(B) A virtual function declared in a base class

[#574] What is the use of apply() function in Valarray?
Correct Answer

(C) Applies the manipulation provided to all the elements of the array

[#575] What is the use of proj() function?
Correct Answer

(D) Used to calculate the projection of a complex number