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 str4?
A. 11
B. 12
C. 13
D. 14
Answer: D
You might also like to view...
Select the most commonly used site organization for commercial web sites.
a. random b. linear c. hierarchical d. none of the above
What Windows utility is particularly useful in identifying software and hardware bottlenecks, and provides the ability to monitor in real time?
A. Event Viewer B. Reliability Monitor C. Performance Monitor D. Resource Monitor
In the historical data of a company, if the sales are recorded over each week of the company per category and per item, then there is probably:
A) one record. B) multiple field primary key. C) single field primary key. D) one field.
What does OLAP stand for??
A. ?Online Linear Application Program B. ?Order Lines Around Pivot C. ?Online Application Power D. ?Online Analytical Processing