The function call string1.erase(5) will:
A) Return a copy of string1 minus the character that occupied position 5.
B) Erase all characters up to and including the character in position 5 from string1.
C) Erase all characters starting from and including the character in position 5 to the end of string1.
D) Return a copy of string1 minus every fifth character.
Correct Answer:
Verified
Q5: Which of the following searches through a
Q6: Which of the following is not an
Q7: Which of the following is not overloaded
Q8: The arguments passed to replace do not
Q9: Given the strings defined below, which statement
Q11: Strings:
A) Can use the subscript operator to
Q12: If string s1 has the value "computer"
Q13: If string s1 is lexicographically greater than
Q14: Which of the following is false?
A) If
Q15: Which of the following returns a bool?
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents