Welcome :Guest

Congratulations!!!

Top 5 Contributors of the Month
Lee Hnetinka
mithun

 Home >> Interview Question >> C# >> Post New Question Subscribe to Interview Questions
You can also find related Interview Question to How can you sort the value of the array in descending order?  below:

### How can you sort the elements of the array in descending order?

By calling Sort() and then Reverse() methods. (More...)

### How can you sort the elements of the Array in descending order?

We can sort the array in descending order by calling
Array.Sort() and then by calling Array.Reverse() method. (More...)

### How can you sort the elements of the array in descending Order?

By calling Sort() and then Reverse() methods. (More...)

### How to sort an int array in c#?

Array class is having method to sort any arrays.

Example:
int[] array = new int[] { 10, 9, 8 };
Array.Sort(array);

Sort is overloaded method with IComparer as argument too. (More...)

### What is Quick Sort?

The quick sort algorithm is of the divide and conquer type. That means it works by reducing a sorting problem into several easier sorting problems and solving each of them. A dividing value is chosen from the input data, and the data is partitioned into three sets: elements that belong before the dividing value, the value itself, and elements that come after the dividing value. The partitioning is performed by exchanging elements that are in the first set but belong in the third with elements that are in the third set but belong in the first Elements that are equal to the dividing element can be put in any of the three sets the algorithm will still work properly. (More...)

### what is Merge Sort?

The merge sort is a divide and conquer sort as well. It works by considering the data to be sorted as a sequence of already-sorted lists (in the worst case, each list is one element long). Adjacent sorted lists are merged into larger sorted lists until there is a single sorted list containing all the elements. The merge sort is good at sorting lists and other data structures that are not in arrays, and it can be used to sort things that don't fit into memory. It also can be implemented as a stable sort. (More...)

The radix sort takes a list of integers and puts each element on a smaller list, depending on the value of its least significant byte. Then the small lists are concatenated, and the process is repeated for each more significant byte until the list is sorted. The radix sort is simpler to implement on fixed-length data such as ints. (More...)

### What is the difference between ARRAY and STACK?

STACK follows LIFO. Thus the item that is first entered would be the last removed.

In array the items can be entered or removed in any order. Basically each member access is done using index. No strict order is to be followed here to remove a particular element. (More...)

### Why do we Use a Multidimensional Array?

A multidimensional array can be useful to organize subgroups of data within an array. In addition to organizing data stored in elements of an array, a multidimensional array can store memory addresses of data in a pointer array and an array of pointers.

Multidimensional arrays are used to store information in a matrix form.
e.g. a railway timetable, schedule cannot be stored as a single dimensional array.
One can use a 3-D array for storing height, width and length of each room on each floor of a building. (More...)

### What order they are triggered ?

They''re triggered in the following order:

Application_BeginRequest
Application_AuthenticateRequest
Application_AuthorizeRequest
Application_ResolveRequestCache
Application_AcquireRequestState
Application_PreRequestHandlerExecute
<`> Application_PostRequestHandlerExecute Application_ReleaseRequestState Application_UpdateRequestCacheApplication_EndRequest. (More...)`
``` ```
``` What's the difference between tab-order and z-order?   Tab-order describes the order of focus as the user moves between controls using the Tab and Shift+Tab keys.This is determined by the control's TabIndex property-set either in the Properties window, or by selecting View | Tab Order and then clicking each control in order. Z-order describes the front-to-back order of controls, and this set in the Designer using the Bringto Front and Send to Back layout options. Z-order matters when controls visually overlap and also when docking:Those at the back of the z-order will be assigned docking space first. (More...) What's the difference between the System.Array.CopyTo() and System.Array.Clone() in c#?   The first one performs a deep copy of the array, the second one is shallow. (More...) What is the order of PageRequestManager class events ,when a single asynchronous AJAX request is made?   initializeRequestbeginRequestpageLoadingpageLoadedendRequest (More...) What is ORDER BY Syntax?   SELECT "COLUMN_NAME" FROM "TABLE_NAME" [WHERE "CONDITION"] ORDER BY "COLUMN_NAME" [ASC, DESC];Example:-SELECT EMPLOYEE_NAME, DESIGNATION, SALARY FROM EMPLOYEE_TABLE ORDER BY DESIGNATION DESC (More...) ```