nerdexam
GIAC

GSSP-NET · Question #184

You work as a Software Developer for ABC Inc. The company has several branches worldwide. The company uses Visual Studio.NET 2005 as its application development platform. You are creating an…

The correct answer is D. Use the params keyword. See the full explanation below for the reasoning.

Question

You work as a Software Developer for ABC Inc. The company has several branches worldwide. The company uses Visual Studio.NET 2005 as its application development platform. You are creating an application using .NET Framework 2.0. The application will be used by all the branches of the company. You sometimes require a variable number of arguments to be passed to a method. For example, you may require a sum method, which calculates the total of the numbers passed to it no matter how many numbers are passed. What will you do to accomplish the task?

Options

  • AUse the out keyword.
  • BUse the base keyword.
  • CUse the volatile keyword.
  • DUse the params keyword.
  • EUse the ref keyword.

How the community answered

(23 responses)
  • C
    13% (3)
  • D
    78% (18)
  • E
    9% (2)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice