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
You might also like to view...
Which of the following statements about peer-to-peer applications is false?
a) Centralized P2P applications follow the client/server relationship. b) In pure P2P applications, it is difficult to determine who is on the network. c) Centralized P2P applications simply management tasks, such as monitoring user access. d) All file-sharing applications are pure P2P applications.
A(n) ________ allows you to break down potential decisions in a logical, structured format
A) decision model B) decision tree C) true/false diagram D) IF function diagram
If you are building an app based on a brand new feature, then you must target the latest platform.
Answer the following statement true (T) or false (F)
For a non-empty linked list, select the code that should appear in a function that adds a node to the end of the list. newPtr is a pointer to the new node to be added, and lastPtr is a pointer to the current last node. Each node contains a pointer nextPtr, a link to a node.
a) lastPtr->nextPtr = newPtr; lastPtr = newPtr; b) lastPtr = newPtr; lastPtr->nextPtr = newPtr; c) newPtr->nextPtr = lastPtr; lastPtr = newPtr; d) lastPtr = newPtr; newPtr->nextPtr = lastPtr;