Consider the following statements:
string str1 = "ABCDEFGHIJKLM";string str2;
After the statement str2 = str1.substr(1,4); executes, the value of str2 is "____".

A. ABCD
B. BCDE
C. BCD
D. CDE


Answer: B

Computer Science & Information Technology

You might also like to view...

The compiler performs a matching process to determine which method to call when a method is invoked. Under what circumstances does an attempt to make a match result in a compile-time error?

What will be an ideal response?

Computer Science & Information Technology

________ macros do not include the entire action list that is available in other macros

Fill in the blank(s) with correct word

Computer Science & Information Technology

The ________ monitors various settings and suggests a plan of action when necessary

Fill in the blank(s) with correct word

Computer Science & Information Technology

A(n) ________ is a portion of text, graphic, or picture that causes audio to play

Fill in the blank(s) with correct word

Computer Science & Information Technology