GIAC
GSSP-NET · Question #251
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 C. 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 base keyword.
- BUse the ref keyword.
- CUse the params keyword.
- DUse the out keyword.
- EUse the volatile keyword.
How the community answered
(41 responses)- A5% (2)
- B2% (1)
- C83% (34)
- D10% (4)
Community Discussion
No community discussion yet for this question.