Multiple Choice
Which of the following function calls is a valid way to place elements into vector<char> chars?
A) std::fill(chars.begin() , chars.end() , '5') ;
B) std::fill_n(chars.begin() , chars.end() , '5') ;
C) std::generate(chars.begin() , 10, '5') ;
D) std::generate_n(10, chars.end() , '5') ;
Correct Answer:

Verified
Correct Answer:
Verified
Q16: Suppose you have a shopping list stored
Q17: Which of the following statements is false?<br>A)
Q18: Lambdas begin with the lambda introducer _,
Q19: Given that v1 and v2 are vectors,
Q20: The for_each function applies a general function
Q22: The _ function would produce a sequence
Q23: Which of the following is not true
Q24: Function template back_inserter returns:<br>A) A container.<br>B) An
Q25: Which of the following statements produces the
Q26: The _ function would produce the sequence