String sentence;String str1, str2, str3, str4;int length1;sentence = "First exam is on Monday.";str1 = sentence.substring(6, 12);str2 = str1.substring(0, 4);str3 = sentence.replace('i', '#');str4 = sentence.indexOf("on");length1 = sentence.length();Based on the code above, what is the value of str2?
A. Firs
B. First
C. Monda
D. exam
Answer: D
Computer Science & Information Technology
You might also like to view...
The most basic unit of data on a computer is the:
a. Bit. b. Byte. c. File. d. int.
Computer Science & Information Technology
Create a class PictureBook that is like the class PhoneBook except that it maps a person’s name to his or her picture.
What will be an ideal response?
Computer Science & Information Technology
In order to send/receive e-mail, using your existing e-mail account, Windows Mail needs to know your existing e-mail address and:
A) name B) password C) username D) key
Computer Science & Information Technology
Which command is used to make sure that the DHCP server starts when the system boots?
A. rcdhcpd start B. rcdhcpd restart C. insserv rcdhcpd D. chkconfig dhcpd on
Computer Science & Information Technology