C Plus Plus Miscellaneous - Study Mode

[#166] What is the operation for .*?
Correct Answer

(A) It combines the first operand and the second operand

[#167] What is the property of stable sort function provided by the STL algorithm?
Correct Answer

(A) sorts the elements of a sequence in ascending order preserving the relative order of equivalent elements

[#168] How many parameters are required for next_permutation?
Correct Answer

(C) 2 or 3

[#169] Which is the correct syntax of capturing a variable 'X' by reference and other variable 'Y' by value in lambda expression?
Correct Answer

(A) [&X, Y]

[#170] Which of the following is correct about tuple_size?
Correct Answer

(A) Returns the number of elements in a tuple