nerdexam
GIAC

GSSP-NET · Question #403

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create an application named StringRW using .NET Framework. You…

The correct answer is B. StringBuilder sb = new StringBuilder("This is my character String Builder"); char[] b = { 'c', C. StringBuilder sb = new StringBuilder("This is my character String Builder"); char[] b = { 'c', D. StringBuilder sb = new StringBuilder("This is my character String Builder"); char[] b = { 'c'. See the full explanation below for the reasoning.

Question

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create an application named StringRW using .NET Framework. You store some characters into an array of Unicode characters. You need to write all or some of these characters into a String object. Which of the following code segments will you choose to accomplish this task? Each correct answer represents a complete solution. Choose all that apply.

Options

  • AStringBuilder sb = new StringBuilder("This is my character String Builder"); char[] b = { 'c',
  • BStringBuilder sb = new StringBuilder("This is my character String Builder"); char[] b = { 'c',
  • CStringBuilder sb = new StringBuilder("This is my character String Builder"); char[] b = { 'c',
  • DStringBuilder sb = new StringBuilder("This is my character String Builder"); char[] b = { 'c',

How the community answered

(49 responses)
  • A
    16% (8)
  • B
    84% (41)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice