What is the value of myStr when the following code is executed?
?
string myStr = ABCdefghiJK";
myStr.replace(4,  5, "12345");

A. ABC12345iJK
B. ABCd12345JK
C. ABC1234hijk
D. ABCd1234hiJK


Answer: B

Computer Science & Information Technology

You might also like to view...

Which of the following statements about the for statement is false?

a. The three expressions in the for statement are optional. b. The initialization and increment expressions can be comma-separated lists. c. You must declare the control variable before the for statement. d. A for statement can always be used to replace a while statement, and vice versa.

Computer Science & Information Technology

More than one function can be applied per field in a PivotTable

Indicate whether the statement is true or false

Computer Science & Information Technology

Which folder stores links or shortcuts to frequently accessed files or folders?

A) Accessories B) Recycle Bin C) My Documents D) Favorites

Computer Science & Information Technology

To generate a report with exact results based on specific criteria it is best to base the report on a(n) ____________________ created in the database.

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

Computer Science & Information Technology