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
Correct Answer:
Verified
Q52: If two StringBuilder objects contain the same
Q64: Exceeding the capacity of a StringBuilder causes
Q68: String objects are _ and StringBuilders are
Q69: Method ToString is not a member of
Q70: The ToUpper and ToLower methods can be
Q71: In order to set a string to
Q72: Method EnsureCapacity is used to return the
Q74: When using the Replace method,the first character
Q76: The ToString method can convert a StringBuilder
Q77: When the Trim method is passed a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents