Multiple Choice
What is the code for a loop that iterates from the end of a string toward the beginning?
A) string::reverse_iterator i{s.begin() }; while (i != s.end() )
{
Cout << *i;
++i;
}
B) string::reverse_iterator i{s.rbegin() }; while (i != s.rend() )
{
Cout << *i;
++i;
}
C) string::reverse_iterator i{s.end() }; while (i != s.begin() )
{
Cout << *i;
--i;
}
D) string::reverse_iterator i{s.rbegin() }; while (i != s.rend() )
{
Cout << *i;
--i;
}
Correct Answer:

Verified
Correct Answer:
Verified
Q12: Which of the statements a), b) and
Q13: Strings:<br>A) Can use the subscript operator to
Q14: Which of the following is false?<br>A) If
Q15: Iterators do not:<br>A) Allow the characters to
Q16: Which of the following returns a bool?<br>A)
Q18: Which of the following is not an
Q19: If string s contains "antidisestablishmentarianism", then s.substr(7,
Q20: The capabilities of inputting and outputting strings
Q21: Which of the following is not overloaded
Q22: Which of the following would not return