Question
a.
It returns the character at the specified position
b.
It returns the string of length 1 from the specified index
c.
It returns the string from specified index till the end
d.
It returns the string from starting of string till the specified index
Posted under Object Oriented Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. If only one parameter is passed to substring function then __________________
Similar Questions
Discover Related MCQs
Q. If two index are given as argument to substring function then ___________________
View solution
Q. String class have a concat() function that is used to _____________________
View solution
Q. The function lastIndexOf() is used to ___________________
View solution
Q. Function equals() is _______________ and equalIgnoreCase() is _________________
View solution
Q. The compareTo() function is used to ________________
View solution
Q. String class provides function toUpper() to _____________________
View solution
Q. String trim() function is used to _______________________
View solution
Q. Function replace() accepts _____________ arguments.
View solution
Q. If two arguments are passed to the indexOf() function then ___________________
View solution
Q. The string class deals with string of only character type.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!