Consider the following statements: After the statement str2 = str1.substr(1,4) ; executes, the value of str2 is "____".
A) ABCD
B) BCDE
C) BCD
D) CDE
Correct Answer:
Verified
Q21: The string expression strVar._ inserts all the
Q22: The identifiers in the system-provided header files
Q26: Suppose str = "ABCDEFGHI".The output of the
Q30: Given the following code which of the
Q31: Suppose that str1, str2, and str3 are
Q31: The length of the string "Hello There."
Q32: A data type wherein you directly specify
Q36: Consider the following statements: After the statement
Q37: Considering the statement string str = "Gone
Q39: Which of the following statements is used
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents