Exam 16: Strings,Characters and Regular Expressions

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

If a programmer desires to use an asterisk (*)literally in a regular expres Sion,they use:

Free
(Multiple Choice)
4.8/5
(34)
Correct Answer:
Verified

C

The Regex and Match classes are in the System.Text namespace.

Free
(True/False)
4.8/5
(41)
Correct Answer:
Verified

False

string indexers treat strings as:

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

C

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

(Multiple Choice)
4.8/5
(28)

The IsPunctuation method returns if:

(Multiple Choice)
4.9/5
(34)

When comparing "a" to "_" the correct result would be:

(Multiple Choice)
4.9/5
(35)

Method Append is used to add the string representation of various data type values to the end of a StringBuilder.

(True/False)
4.8/5
(34)

Both stings and characters should be enclosed in double quotes ("x").

(True/False)
4.7/5
(37)

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.

(True/False)
4.9/5
(31)

When a quantifier is greedy it:

(Multiple Choice)
4.8/5
(28)

The char,int,and double types are all defined by structs.

(True/False)
4.9/5
(26)

The ToString method can be used to convert a StringBuilder into a string.

(True/False)
4.8/5
(38)

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.8/5
(39)

In regular expressions,a word character is considered to be any alphanu meric character.

(True/False)
4.9/5
(39)

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

(True/False)
4.8/5
(35)

You can use classes Regex and Match to find patterns in a string.

(True/False)
4.8/5
(35)

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

(True/False)
4.9/5
(41)

Concatenating two strings merges the two strings into another string.

(True/False)
4.8/5
(50)

Method Insert can be used to insert various data types into a given position of a StringBuilder.

(True/False)
4.8/5
(30)

The string method xe "CopyTo method of class String"CopyTo copies a specified number of characters from a:

(Multiple Choice)
4.8/5
(34)
Showing 1 - 20 of 92
close modal

Filters

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