nerdexam
GIAC

GSSP-NET · Question #152

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You have created an application for the company. The application uses…

The correct answer is D. Write code that uses the Append() method of the StringBuilder object. 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 have created an application for the company. The application uses string concatenation to gather data from multiple email messages, and format the data before displaying it. You want to ensure that the data displays as quickly as possible. Which of the following actions will you take to accomplish the task?

Options

  • AWrite code that uses the Concat() method of the String object.
  • BWrite code that uses the Substring() method of the String object.
  • CWrite code that uses the plus-sign (+) operator to concatenate the strings.
  • DWrite code that uses the Append() method of the StringBuilder object.

How the community answered

(27 responses)
  • A
    11% (3)
  • B
    4% (1)
  • C
    15% (4)
  • D
    70% (19)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice