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...

Which of the following is considered the most effective tool in the arsenal to fight terrorism and computer crime alike?

a. USA Patriot Act b. Wiretap Act c. National Security Act d. Immigration and Nationality Act

Computer Science & Information Technology

Which of the following is the core software application that manages computer virtualization?

A. Hypervisor B. Hyperthreading C. Console D. KVM

Computer Science & Information Technology