Exam 16: Strings,Characters and Regular Expressions

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

If an IndexOfAny method is passed an array of characters it:

(Multiple Choice)
5.0/5
(34)

Class xe "StringBuilder class"StringBuilder is used to:

(Multiple Choice)
4.9/5
(34)

Strings are not able to be made from an array of characters.

(True/False)
4.9/5
(40)

When a backslash is found within quotes it's considered part of an escape sequence.

(True/False)
4.7/5
(39)

Properties Length and Capacity are used to return the number of characters in the StringBuilder and the total length allowed (at that time)of the StringBuilder,respectively.

(True/False)
4.8/5
(28)

Class String and the Char structure are found in the:

(Multiple Choice)
4.8/5
(29)

strings always know their size.

(True/False)
4.8/5
(28)

A lazy quantifier will return only the first case that matches the specifica tions.

(True/False)
4.9/5
(31)

If a method's arguments cause it to access an index of the string that is beyond its length,the program will retrieve whatever is in that memory location.

(True/False)
4.8/5
(39)

The letter 'B' is greater than the letter 'b'.

(True/False)
4.8/5
(39)

The proper way to convert a string to all lowercase is:

(Multiple Choice)
4.8/5
(38)

The string Split method is used to:

(Multiple Choice)
4.8/5
(31)

When passed a white space,method Trim can be used to eliminate all characters from a string.

(True/False)
4.7/5
(41)

In the declaration: string color = "blue";

(Multiple Choice)
4.9/5
(27)

Exceeding the capacity of a StringBuilder causes the program to throw an OutOfRangeException.

(True/False)
4.8/5
(31)

The asterisk (*)can be used to match an expression zero or more times.

(True/False)
4.8/5
(26)

Method AppendFormat can be used to format objects with spaces or using proper mathematical notations.

(True/False)
4.8/5
(29)

An example of a struct is:

(Multiple Choice)
4.9/5
(34)

The IndexOf method returns the indices of all occurrences of the given string.

(True/False)
4.9/5
(37)

Which of the following cannot be used to form a word

(Multiple Choice)
4.8/5
(43)
Showing 21 - 40 of 92
close modal

Filters

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