nerdexam
GIAC

GSSP-NET · Question #382

You work as a Software Developer for Blue Well Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create an application using Visual C# .NET and perform the…

The correct answer is C. int[] array1 = {12, 16, 18, 22}. See the full explanation below for the reasoning.

Question

You work as a Software Developer for Blue Well Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create an application using Visual C# .NET and perform the following operations:

 Create a static array.  Sort the array.  Display the sorted array. Which of the following code snippets will you use to accomplish the task?

Options

  • Aint array1[] = {12, 16, 18, 22};
  • Bint[] array1 = {12, 16, 18, 22};
  • Cint[] array1 = {12, 16, 18, 22};
  • Dint[] array1 = {12, 16, 18, 22};

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    5% (2)
  • C
    75% (33)
  • D
    14% (6)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice