C Plus Plus Miscellaneous - Study Mode

[#501] Which container is best to keep the collection of distinct elements?
Correct Answer

(C) set

[#502] What do you mean by "No exception specification"?
Correct Answer

(B) It can throw anything

[#503] What is a pair?
Correct Answer

(D) Container consisting of two data elements can have the same or different type

[#504] Which operations don't throw anything?
Correct Answer

(B) Operations which are irreversible

[#505] Which header file is used for generating random numbers?
Correct Answer

(D) <random>