Exam 16: Strings,Characters and Regular Expressions

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

When using the Replace method,the first character passed in is the letter to be replaced and the second is what it will be replaced by.

(True/False)
4.8/5
(39)

Method Replace can be used to change all occurrences of a desired character to another character.

(True/False)
4.9/5
(33)

In order to set a string to reference nothing the programmer must use:

(Multiple Choice)
4.8/5
(43)

To make a quantifier lazy use:

(Multiple Choice)
4.8/5
(45)

The ToUpper and ToLower methods can be used to convert a string to all upper or lower case letters,respectively.

(True/False)
4.9/5
(25)

Another way to concatenate a string is to use the ampersand (&).

(True/False)
4.9/5
(34)

A string literal:

(Multiple Choice)
4.8/5
(31)

To make a search return between 10 and 20 results use

(Multiple Choice)
4.9/5
(24)

If an integer argument goes beyond the bounds of the array then:

(Multiple Choice)
4.9/5
(39)

The method IsWhiteSpace is used to determine whether a character is a space or not.

(True/False)
4.8/5
(32)

When setting the length of a StringBuilder to a length that's shorter than the current one,an ArgumentOutOfRangeException is thrown.

(True/False)
4.7/5
(34)

ToUpper(string)is

(Multiple Choice)
4.7/5
(32)

Method Remove can be used to delete any part of a StringBuilder.

(True/False)
4.8/5
(43)

string example = "Deitel"; 2) example = example + " Books";

(Multiple Choice)
4.8/5
(34)

The Length property returns the length of a string.

(True/False)
4.9/5
(40)

Concatenating with strings is done with:

(Multiple Choice)
5.0/5
(36)

Method Insert can be used only on the primitive data types.

(True/False)
4.9/5
(21)

The Equals string method is used to see if:

(Multiple Choice)
4.9/5
(38)

Method EnsureCapacity returns the capacity of a StringBuilder.

(True/False)
4.8/5
(37)

Characters consist of only the capital and lowercase letters.

(True/False)
4.8/5
(37)
Showing 61 - 80 of 92
close modal

Filters

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