Answer the following statements true (T) or false (F)

1) The CompareTo method returns a positive number if the invoking string
is less than the argument, a negative number if the invoking string is greater and a 0 if they are the same.
2) The StartsWith and EndsWith methods see if a string starts or ends with
the given character or string.
3) The IndexOf method returns the indices of all occurrences of the given string.
4) Method LastIndexOf is used to find the last occurrence of given text in a
string.
5) The LastIndexOfAny method scans through the array of characters
backwards.

1) F
2) T
3) F
4) T
5) T

Computer Science & Information Technology

You might also like to view...

The taskbar at the bottom of the Windows Vista screen must display at all times

Indicate whether the statement is true or false

Computer Science & Information Technology

Why would a manager prefer a decision tree instead of a decision table?

What will be an ideal response?

Computer Science & Information Technology