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.


c. Erase all characters starting from and including the character in position 5 to the end of string1.

Computer Science & Information Technology

You might also like to view...

A back-end database contains the queries, forms, and reports of the database

Indicate whether the statement is true or false

Computer Science & Information Technology

Robin has purchased a new computer that has the Windows 10 operating system. Excited about learning the new features of Windows 10, she starts the computer, enters her login information and takes a look at the desktop. She displays the Start menu and takes time to get acquainted with her new working environment. Robin notices that the on the right side of the status bar, there is a(n) __________ area containing the date and time as well as icons that tell her the status of her computer.

What will be an ideal response?

Computer Science & Information Technology

Consider the following code which deletes all the nodes in a linked list.void doublyLinkedList::destroy(){  nodeType *temp; //pointer to delete the node  while (first != nullptr)  {     temp = first;     first = first->next;     ____}last  = nullptr;count = 0;}Which of the following is the missing statement?

A. delete first; B. delete temp; C. destroy temp; D. clear temp;

Computer Science & Information Technology

If you open a file with the .txt file in Windows, it opens in what program/app?

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology