Deck 17: Strings and Characters: a Deeper Look

Full screen (f)
exit full mode
Question
The Unicode character set has the same characters as ASCII.
Use Space or
up arrow
down arrow
to flip the card.
Question
Strings are immutable-a String's character contents cannot be changed after it is created.
Question
In the declaration: Dim color As String = "blue"

A)the String literal color is assigned to the String variable "blue"
B)the String variable color is assigned to the String literal "blue"
C)the String literal "blue" is assigned to the String variable color
D)None of the above
Question
If an index goes beyond the bounds of an array:

A)an ArgumentOutOfBoundsException is thrown.
B)a BoundsException is thrown.
C)an ArgumentOutOfRangeException is thrown.
D)a RangeException is thrown.
Question
The expression New String("C"c,5)creates a string with the value: "CCCCC".
Question
You can find patterns in Strings by using classes Regex and Match.
Question
The Regex and Match classes are found in the System.Text namespace.
Question
Visual Studio treats _______ as delimiters for Strings and does not treat them as part of a String.

A)single quotes
B)double quotes
C)parentheses
D)None of the above
Question
Which of the following cannot be used to store a sequence of characters?

A)String
B)StringBuilder
C)Regex
D)An array of Chars
E)None of the above.
Question
Class String and the Char structure are found in the:

A)System.Strings namespace
B)System.Chars Namespace
C)System.Text namespace
D)System namespace
Question
A String cannot be made directly from an array of characters.
Question
When using the String constructor with arguments (Char,Integer),the character is repeated the number of times specified by the integer.
Question
A string literal:

A)contains only one character.
B)contains numbers rather than letters.
C)is a sequence of characters in double quotation marks.
D)contains only its variable name and nothing else.
Question
The expression New String("America",4,2)creates a string with the value:

A)"meri"
B)"ire"
C)"ri"
D)"ic"
E)Nothing
Question
When creating a String object,if a character array and two integers are passed to the String constructor,then the created String contains:

A)the characters of the array from the index specified by the first integer for the number of characters represented by the second integer.
B)the characters of the array from the index specified by the first integer to the index specified by the second integer.
C)all of the characters except those between the indices represented by the two integer values.
D)None of the above.
Question
The bounds on a String are always:

A)0 to myString.Length.
B)1 to myString.Length.
C)0 to myString.Length - 1.
D)1 to myString.Length - 1.
Question
A sequence of characters in double quotation marks is often called a String reference.
Question
Characters consist of only the uppercase and lowercase alphabets.
Question
Characters can be:

A)uppercase letters
B)lowercase letters
C)digits
D)All of the above
Question
A character constant is an integer value that represents a character.
Question
When a number is passed as an argument for a String indexer,it returns that many characters starting from the first.
Question
The first argument given to method CopyTo is a character array into which the characters are copied.
Question
A comparison of the String "hello" with the String "HELLO",using method Equals,would return True.
Question
The CompareTo method returns a 1 if the invoking String is less than the argument,a -1 if the invoking String is greater,and a 0 if they are the same.
Question
Lexicographical comparison refers to the comparison of two Strings based on their characters' Unicode values.
Question
When using the LastIndexOf method with three arguments,the second parameter specifies:

A)the length of the substring to search
B)the starting index from which to begin the search
C)the ending index from which to begin the search
D)the string to search for
Question
The way to find out if two Strings are equal is:

A)the Equals method
B)the CompareTo method
C)the = operator
D)All of the above
Question
String indexers treat strings as:

A)binary code
B)ASCII code
C)arrays of characters
D)a character
Question
The Equals method is used to see if:

A)two Strings are exactly the same.
B)two Strings start with the same letter.
C)the ASCII sum of both Strings are the same.
D)the two Strings have the same letter in the same position anywhere in the strings.
Question
There is no direct way of converting a String to a character array.
Question
Given the literal String object string1 = "hello there",then string1.Length = 10.
Question
The StartsWith and EndsWith methods see if a String starts or ends with the given character or String.
Question
To obtain a single character from a string,the string is indexed like an array of characters.
Question
Passing an index greater than zero,but less than or equal to the length of the String will result in an IndexOutOfRangeException.
Question
When comparing "a" to "_" the correct result would be:

A)"a" is greater
B)they are equal
C)"_" is greater
D)there is no way to compare "_" to "a"
Question
The Length property returns the length of a String.
Question
The letter "Z" (uppercase)is greater than the letter "b" (lowercase).
Question
The String method xe "CopyTo method of class String"CopyTo copies a specified number of characters from a:

A)Char array into a String
B)String into a Char array
C)String into a Integer array
D)All of the above
Question
Method xe "StartsWith method of class String"StartsWith takes two arguments.
Question
One String is less than another String if the first comes before the second alphabetically.
Question
If a Substring method is passed only one argument then that argument must specify:

A)the starting index from which the method copies
B)the ending index to which the method copies
C)the number of copies the method will output
D)the length of the substring to be copied
Question
Method LastIndexOf is used to find the last occurrence of given text in a string.
Question
ToUpper( string )is

A)a way of converting a String to all upper cases.
B)a way to make the first letter of every word in a String a capital letter.
C)a way of making one String more important than the rest.
D)a syntax error.
Question
Concatenating two Strings merges the two Strings into another String.
Question
Concatenating with Strings is done with:

A)reserved words.
B)method calls.
C)operator overloading.
D)operator overloading and method calls.
Question
If an IndexOfAny method is passed a string it:

A)finds the first occurrence of each letter in the string
B)searches for the first occurrence of any of the characters in the string
C)will search for the first occurrence of the sequence of characters
D)generates an error
Question
What does the following code print out? <strong>What does the following code print out?  </strong> A)_Pr B)_Prog C)Pro D)Progr <div style=padding-top: 35px>

A)_Pr
B)_Prog
C)Pro
D)Progr
Question
What will executing the following snippet of code do?
Dim example As String = "Good"
Example &= " Books"

A)This will produce an error.
B)This will not produce an error;however,line 2 will not change the String example.
C)This will not produce an error,and example's value becomes " BooksGood".
D)This will not produce an error,and example's value becomes "Good Books".
Question
In order to concatenate a String with another String you can use the Concat method.
Question
Method xe "Concat method of class String"Concat is not a Shared method.
Question
String method IndexOfAny returns an ElementNotFoundException when the argument is not found within the String.
Question
Another way to concatenate a String is to place the dot operator (. )between the two Strings.
Question
If a method's arguments cause it to access an index of the String that's beyond its length,the program will retrieve whatever is in that memory location.
Question
Which of the following is not a String method:

A)IndexOf
B)IndexOfAll
C)IndexOfAny
D)LastIndexOfAny
Question
The IndexOf method will return the indices of all occurrences of the given string.
Question
When a programmer passes two integers as arguments for the Substring method,what is returned?

A)The characters from the first integer to the second
B)As many characters as the second integer starting at the first integer
C)As many characters as the first integer starting at the second integer
D)no return is made;an error occurs
Question
String.Concat(string1,string2)has the same result as string1 & string2.
Question
If an IndexOfAny method is passed an array of characters it:

A)finds the first occurrence of each letter in the String
B)searches for the first occurrence of any of the characters in the String
C)will search for the first occurrence of the sequence of characters
D)generates an error
Question
The proper way to convert a string to all lowercase is:

A)Char.ToLower( string )
B)ToLower( string )
C)string.ToLower()
D)string.ToLower( string )
Question
Each Substring method returns a new String object.
Question
Method Trim returns a copy of a String with all non-whitespace charcters eliminated.
Question
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.
Question
Which of the following String methods does not modify the original String?

A)Method Replace
B)Method ToUpper
C)Method ToLower
D)All of the above
Question
When appropriate,using String objects instead of StringBuilder objects improves performance.
Question
Strings cannot be changed.
Question
Properties Length and Capacity are used (respectively)to return the number of characters and the total length allowed (at that time)of the String Builder.
Question
The keyword Nothing is the same as the empty String,"".
Question
String objects are ________ and StringBuilders are __________.

A)immutable,immutable
B)immutable,mutable
C)mutable,immutable
D)mutable,mutable
Question
Method ToString is not a member of class:

A)String
B)Object
C)StringBuilder
D)None of the above
Question
The ToUpper and ToLower methods can be used to return a copy of a String in all uppercase or lowercase letters,respectively.
Question
In order to set a string to reference Nothing you must use:

A)string1 = Nothing
B)string1 = ""
C)string1 = ''
D)Either a.or b.
Question
Method EnsureCapacity is used to return the capacity of a String Builder.
Question
After method EnsureCapacity doubles the StringBuilder instance's current capacity,if the new capacity is still lower than the value that the programmer wishes to ensure:

A)EnsureCapacity doubles capacity again
B)EnsureCapacity sets capacity to the requested number
C)EnsureCapacity sets capacity to one more than the requested number
D)None of the above
Question
When using the Replace method,the first character passed in is the character to be replaced and the second is what it will be replaced by.
Question
If two StringBuilder objects contain the same string,then

A)they represent the same location in memory
B)they are two different objects
C)if one changes,so will the other
D)None of the above
Question
The ToString method can convert a StringBuilder into a String.
Question
When the Trim method is passed a character array,it returns a String without any of the characters found within that array.
Question
Exceeding the capacity of a StringBuilder causes the program to throw an OutOfRangeException.
Question
Each StringBuilder has a limit of characters that cannot be exceeded.
Question
Class xe "StringBuilder class"StringBuilder is used to:

A)create Strings
B)manipulate Strings
C)modify Strings
D)All of the above
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/116
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 17: Strings and Characters: a Deeper Look
1
The Unicode character set has the same characters as ASCII.
False
2
Strings are immutable-a String's character contents cannot be changed after it is created.
True
3
In the declaration: Dim color As String = "blue"

A)the String literal color is assigned to the String variable "blue"
B)the String variable color is assigned to the String literal "blue"
C)the String literal "blue" is assigned to the String variable color
D)None of the above
C
4
If an index goes beyond the bounds of an array:

A)an ArgumentOutOfBoundsException is thrown.
B)a BoundsException is thrown.
C)an ArgumentOutOfRangeException is thrown.
D)a RangeException is thrown.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
5
The expression New String("C"c,5)creates a string with the value: "CCCCC".
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
6
You can find patterns in Strings by using classes Regex and Match.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
7
The Regex and Match classes are found in the System.Text namespace.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
8
Visual Studio treats _______ as delimiters for Strings and does not treat them as part of a String.

A)single quotes
B)double quotes
C)parentheses
D)None of the above
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
9
Which of the following cannot be used to store a sequence of characters?

A)String
B)StringBuilder
C)Regex
D)An array of Chars
E)None of the above.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
10
Class String and the Char structure are found in the:

A)System.Strings namespace
B)System.Chars Namespace
C)System.Text namespace
D)System namespace
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
11
A String cannot be made directly from an array of characters.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
12
When using the String constructor with arguments (Char,Integer),the character is repeated the number of times specified by the integer.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
13
A string literal:

A)contains only one character.
B)contains numbers rather than letters.
C)is a sequence of characters in double quotation marks.
D)contains only its variable name and nothing else.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
14
The expression New String("America",4,2)creates a string with the value:

A)"meri"
B)"ire"
C)"ri"
D)"ic"
E)Nothing
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
15
When creating a String object,if a character array and two integers are passed to the String constructor,then the created String contains:

A)the characters of the array from the index specified by the first integer for the number of characters represented by the second integer.
B)the characters of the array from the index specified by the first integer to the index specified by the second integer.
C)all of the characters except those between the indices represented by the two integer values.
D)None of the above.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
16
The bounds on a String are always:

A)0 to myString.Length.
B)1 to myString.Length.
C)0 to myString.Length - 1.
D)1 to myString.Length - 1.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
17
A sequence of characters in double quotation marks is often called a String reference.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
18
Characters consist of only the uppercase and lowercase alphabets.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
19
Characters can be:

A)uppercase letters
B)lowercase letters
C)digits
D)All of the above
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
20
A character constant is an integer value that represents a character.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
21
When a number is passed as an argument for a String indexer,it returns that many characters starting from the first.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
22
The first argument given to method CopyTo is a character array into which the characters are copied.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
23
A comparison of the String "hello" with the String "HELLO",using method Equals,would return True.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
24
The CompareTo method returns a 1 if the invoking String is less than the argument,a -1 if the invoking String is greater,and a 0 if they are the same.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
25
Lexicographical comparison refers to the comparison of two Strings based on their characters' Unicode values.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
26
When using the LastIndexOf method with three arguments,the second parameter specifies:

A)the length of the substring to search
B)the starting index from which to begin the search
C)the ending index from which to begin the search
D)the string to search for
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
27
The way to find out if two Strings are equal is:

A)the Equals method
B)the CompareTo method
C)the = operator
D)All of the above
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
28
String indexers treat strings as:

A)binary code
B)ASCII code
C)arrays of characters
D)a character
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
29
The Equals method is used to see if:

A)two Strings are exactly the same.
B)two Strings start with the same letter.
C)the ASCII sum of both Strings are the same.
D)the two Strings have the same letter in the same position anywhere in the strings.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
30
There is no direct way of converting a String to a character array.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
31
Given the literal String object string1 = "hello there",then string1.Length = 10.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
32
The StartsWith and EndsWith methods see if a String starts or ends with the given character or String.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
33
To obtain a single character from a string,the string is indexed like an array of characters.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
34
Passing an index greater than zero,but less than or equal to the length of the String will result in an IndexOutOfRangeException.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
35
When comparing "a" to "_" the correct result would be:

A)"a" is greater
B)they are equal
C)"_" is greater
D)there is no way to compare "_" to "a"
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
36
The Length property returns the length of a String.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
37
The letter "Z" (uppercase)is greater than the letter "b" (lowercase).
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
38
The String method xe "CopyTo method of class String"CopyTo copies a specified number of characters from a:

A)Char array into a String
B)String into a Char array
C)String into a Integer array
D)All of the above
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
39
Method xe "StartsWith method of class String"StartsWith takes two arguments.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
40
One String is less than another String if the first comes before the second alphabetically.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
41
If a Substring method is passed only one argument then that argument must specify:

A)the starting index from which the method copies
B)the ending index to which the method copies
C)the number of copies the method will output
D)the length of the substring to be copied
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
42
Method LastIndexOf is used to find the last occurrence of given text in a string.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
43
ToUpper( string )is

A)a way of converting a String to all upper cases.
B)a way to make the first letter of every word in a String a capital letter.
C)a way of making one String more important than the rest.
D)a syntax error.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
44
Concatenating two Strings merges the two Strings into another String.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
45
Concatenating with Strings is done with:

A)reserved words.
B)method calls.
C)operator overloading.
D)operator overloading and method calls.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
46
If an IndexOfAny method is passed a string it:

A)finds the first occurrence of each letter in the string
B)searches for the first occurrence of any of the characters in the string
C)will search for the first occurrence of the sequence of characters
D)generates an error
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
47
What does the following code print out? <strong>What does the following code print out?  </strong> A)_Pr B)_Prog C)Pro D)Progr

A)_Pr
B)_Prog
C)Pro
D)Progr
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
48
What will executing the following snippet of code do?
Dim example As String = "Good"
Example &= " Books"

A)This will produce an error.
B)This will not produce an error;however,line 2 will not change the String example.
C)This will not produce an error,and example's value becomes " BooksGood".
D)This will not produce an error,and example's value becomes "Good Books".
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
49
In order to concatenate a String with another String you can use the Concat method.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
50
Method xe "Concat method of class String"Concat is not a Shared method.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
51
String method IndexOfAny returns an ElementNotFoundException when the argument is not found within the String.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
52
Another way to concatenate a String is to place the dot operator (. )between the two Strings.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
53
If a method's arguments cause it to access an index of the String that's beyond its length,the program will retrieve whatever is in that memory location.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
54
Which of the following is not a String method:

A)IndexOf
B)IndexOfAll
C)IndexOfAny
D)LastIndexOfAny
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
55
The IndexOf method will return the indices of all occurrences of the given string.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
56
When a programmer passes two integers as arguments for the Substring method,what is returned?

A)The characters from the first integer to the second
B)As many characters as the second integer starting at the first integer
C)As many characters as the first integer starting at the second integer
D)no return is made;an error occurs
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
57
String.Concat(string1,string2)has the same result as string1 & string2.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
58
If an IndexOfAny method is passed an array of characters it:

A)finds the first occurrence of each letter in the String
B)searches for the first occurrence of any of the characters in the String
C)will search for the first occurrence of the sequence of characters
D)generates an error
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
59
The proper way to convert a string to all lowercase is:

A)Char.ToLower( string )
B)ToLower( string )
C)string.ToLower()
D)string.ToLower( string )
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
60
Each Substring method returns a new String object.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
61
Method Trim returns a copy of a String with all non-whitespace charcters eliminated.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
62
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.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
63
Which of the following String methods does not modify the original String?

A)Method Replace
B)Method ToUpper
C)Method ToLower
D)All of the above
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
64
When appropriate,using String objects instead of StringBuilder objects improves performance.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
65
Strings cannot be changed.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
66
Properties Length and Capacity are used (respectively)to return the number of characters and the total length allowed (at that time)of the String Builder.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
67
The keyword Nothing is the same as the empty String,"".
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
68
String objects are ________ and StringBuilders are __________.

A)immutable,immutable
B)immutable,mutable
C)mutable,immutable
D)mutable,mutable
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
69
Method ToString is not a member of class:

A)String
B)Object
C)StringBuilder
D)None of the above
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
70
The ToUpper and ToLower methods can be used to return a copy of a String in all uppercase or lowercase letters,respectively.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
71
In order to set a string to reference Nothing you must use:

A)string1 = Nothing
B)string1 = ""
C)string1 = ''
D)Either a.or b.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
72
Method EnsureCapacity is used to return the capacity of a String Builder.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
73
After method EnsureCapacity doubles the StringBuilder instance's current capacity,if the new capacity is still lower than the value that the programmer wishes to ensure:

A)EnsureCapacity doubles capacity again
B)EnsureCapacity sets capacity to the requested number
C)EnsureCapacity sets capacity to one more than the requested number
D)None of the above
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
74
When using the Replace method,the first character passed in is the character to be replaced and the second is what it will be replaced by.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
75
If two StringBuilder objects contain the same string,then

A)they represent the same location in memory
B)they are two different objects
C)if one changes,so will the other
D)None of the above
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
76
The ToString method can convert a StringBuilder into a String.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
77
When the Trim method is passed a character array,it returns a String without any of the characters found within that array.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
78
Exceeding the capacity of a StringBuilder causes the program to throw an OutOfRangeException.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
79
Each StringBuilder has a limit of characters that cannot be exceeded.
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
80
Class xe "StringBuilder class"StringBuilder is used to:

A)create Strings
B)manipulate Strings
C)modify Strings
D)All of the above
Unlock Deck
Unlock for access to all 116 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 116 flashcards in this deck.