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...
A Microsoft ________ account allows you to store and share files in the cloud
A) iCloud B) Drive C) OneDrive D) Dropbox
Computer Science & Information Technology
________ a graphic reverses the direction either vertically or horizontally
Fill in the blank(s) with correct word
Computer Science & Information Technology