Exam 16: Strings,Characters and Regular Expressions

arrow

11,066 students have unlocked this exam

  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

To create a string literal that excludes escape sequences,use:

(Multiple Choice)
4.9/5
(35)

The LastIndexOfAny method scans through the array of characters backwards.

(True/False)
4.8/5
(37)

The (+)character performs the same function as the asterisk (*).

(True/False)
4.7/5
(26)

What does the following code display String example = "C#_Programming"; Console.Write(example.Substring(3,5);

(Multiple Choice)
4.7/5
(31)

A string is a composition of characters used as one object.

(True/False)
4.7/5
(35)

When appropriate,using string objects instead of StringBuilder objects improves performance.

(True/False)
4.7/5
(35)

When a number is passed as an argument for a string indexer it returns that many characters starting from the first.

(True/False)
4.7/5
(42)

When using the LastIndexOf method with three arguments,the second parameter specifies:

(Multiple Choice)
4.7/5
(44)

Method Matches can be used to get a list of all matches with a character.

(True/False)
4.8/5
(39)

By default all quantifiers are lazy.

(True/False)
4.7/5
(36)

A string is less than another string if the first "comes before" the second alphabetically.

(True/False)
4.9/5
(43)

If an IndexOfAny method is passed a string it:

(Multiple Choice)
4.8/5
(35)

The way to find out if two strings are equal is:

(Multiple Choice)
4.8/5
(37)

When two integers are passed as arguments to the Substring method,it:

(Multiple Choice)
4.7/5
(40)

Each StringBuilder has a limit of characters that cannot be exceeded.

(True/False)
4.7/5
(36)

If a number is formatted with the D3 formatter,it means that:

(Multiple Choice)
4.9/5
(41)

The StartsWith and EndsWith methods see if a string starts or ends with the given character or string.

(True/False)
4.8/5
(36)

The Unicode character set has the same characters as ASCII.

(True/False)
4.9/5
(37)

Method LastIndexOf is used to find the last occurrence of given text in a string.

(True/False)
4.8/5
(35)

The difference between {n} and {n,} is:

(Multiple Choice)
4.8/5
(34)
Showing 41 - 60 of 92
close modal

Filters

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