Write a small program that uses the Sort() method to sort an array of names into alphabetical order.
What will be an ideal response?
using System;
class SortArray
{
static void Main()
{
string[] names = {"Olive", "Patty", "Richard", "Ned", "Mindy"};
int x;
Array.Sort(names);
for(x = 0; x < names.Length; ++x)
WriteLine(names[x]);
}
}
You might also like to view...
The 64-bit version of Windows XP runs on the Intel Itanium chip and supports up to __________ GB of physical memory and up to __________ TB (terabytes) of virtual memory.
a. 16/16 b. 8/8 c. 4/4 d. 32/32
A(n) _________________________ is a set of packets for which a source requires special handling by the intervening routers.
Fill in the blank(s) with the appropriate word(s).
________, also known as mini notebooks, are lighter and thinner with longer battery life than most laptops.
A. Microprocessors B. Semiconductors C. Tablets D. Ultrabooks
A control that enables you to manage attached files in forms and reports.
What will be an ideal response?