Multiple Choice
How do you extract the first 5 characters from the string str?
A) substring(str, 5)
B) substring.str(0,5)
C) str.substring(5)
D) str.substring(0,5)
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q108: Assuming that the user enters 23 and
Q109: What will be printed by the statements
Q110: Which of the following statements is correct
Q111: Which one of the following is a
Q112: What is wrong with the following code
Q114: Assuming that the user inputs a value
Q115: Suppose a phone number, stored as a
Q116: Which one of the following operators computes
Q117: What will be the value stored in
Q118: What is the output of the following