Exam 17: Strings and Characters: a Deeper Look

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Strings are immutable-a String's character contents cannot be changed after it is created.

Free
(True/False)
4.9/5
(31)
Correct Answer:
Verified

True

To make a quantifier lazy use:

Free
(Multiple Choice)
4.9/5
(28)
Correct Answer:
Verified

B

Method ToString is not a member of class:

Free
(Multiple Choice)
4.9/5
(42)
Correct Answer:
Verified

D

Method xe "StartsWith method of class String"StartsWith takes two arguments.

(True/False)
4.8/5
(35)

The Equals method is used to see if:

(Multiple Choice)
4.9/5
(38)

If two StringBuilder objects contain the same string,then

(Multiple Choice)
4.9/5
(38)

Method AppendFormat allows:

(Multiple Choice)
4.9/5
(33)

When the Trim method is passed a character array,it returns a String without any of the characters found within that array.

(True/False)
4.9/5
(32)

Lexicographical comparison refers to the comparison of two Strings based on their characters' Unicode values.

(True/False)
4.8/5
(35)

When creating a String object,if a character array and two integers are passed to the String constructor,then the created String contains:

(Multiple Choice)
4.9/5
(38)

Method EnsureCapacity is used to return the capacity of a String Builder.

(True/False)
4.8/5
(38)

If a Replace method is passed ( "M"c,"m"c,0,3 )it will:

(Multiple Choice)
4.8/5
(32)

Method Replace can be used to get a copy of a String in which all occurrences of a desired character are changed to another character.

(True/False)
4.8/5
(29)

Replace is a method that allows the user to change any character in a StringBuilder to a given argument.

(True/False)
4.8/5
(38)

To make a search return between 10 and 20 results use

(Multiple Choice)
4.9/5
(34)

Method Trim returns a copy of a String with all non-whitespace charcters eliminated.

(True/False)
4.7/5
(34)

Each Substring method returns a new String object.

(True/False)
4.9/5
(33)

A format string has the form:

(Multiple Choice)
4.8/5
(26)

The ToUpper and ToLower methods can be used to return a copy of a String in all uppercase or lowercase letters,respectively.

(True/False)
4.9/5
(32)

A String cannot be made directly from an array of characters.

(True/False)
4.8/5
(35)
Showing 1 - 20 of 116
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)