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 str3?
A. "First exam is on Monday."
B. "F#rst exam #s on Monday."
C. "F#rst exam is on Monday."
D. "#i### #### i###########."
Answer: B
Computer Science & Information Technology
You might also like to view...
Place into correct order the steps when conducting an investigation
I. First A. Transport the evidence to the lab II. Second B. Tag the evidence III. Third C. Bag the evidence IV. Fourth D. Document the evidence
Computer Science & Information Technology
In a partitioned memory environment, the single boundary register is replaced by the ________ and ________ registers which delimit the upper and lower boundaries of a partition, respectively.
a) base, limit b) limit, base c) high, low d) low, high
Computer Science & Information Technology