Arrays on C# related Questions and Answers - Page 3

Question 21 : Which of these methods of class String is used to separate a substring from a String object?
1. substring()
2. Substring()
3. SubString()
4. None of the mentioned
View Answer   Discuss with Members

Question 22 : Which of these data type values is returned by equals() method of String class?
1. char
2. int
3. boolean
4. all of the mentioned
View Answer   Discuss with Members

Question 23 : What is the value returned by function compareTo() if the invoking string is less than the string compared?
1. zero
2. value less than zero
3. value greater than zero
4. none of the mentioned
View Answer   Discuss with Members

Question 24 : Which of these methods returns the string such that some characters which are specified to be removed from the end of strings are removed from string by mentioning the number of characters to be removed?
1. Trim()
2. Remove()
3. TrimEnd()
4. Split()
View Answer   Discuss with Members

Question 25 : Which of these methods of class String is used to check whether a substring exists at the beginning of the particular string?
1. StartsWith()
2. EndsWith()
3. Starts()
4. ends()
View Answer   Discuss with Members

Question 26 : Which of these methods is used to compare two strings such that after comparison output returns different integer values as ( 0 for false, 1 for true)?
1. Equals ()
2. == operator
3. Compare()
4. None of the mentioned
View Answer   Discuss with Members

Question 27 : Which of these methods of class String is used to compare two String objects for their equality?
1. equals()
2. Equals()
3. isequal()
4. Isequal()
View Answer   Discuss with Members

Question 28 : Correct way to convert a string to uppercase using string class method()?
1. Upper()
2. ToUpper()
3. Object.ToUpper()
4. None of the mentioned
View Answer   Discuss with Members

Question 29 : What is the String in C# meant for?
1. Variable
2. Character Array
3. Object
4. Class
View Answer   Discuss with Members

Question 30 : The Method use to remove white space from string?
1. Split()
2. Substring()
3. Trim()
4. TrimStart()
View Answer   Discuss with Members


View 21 - 30 of 39 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter