ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  C Sharp
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
How can you sort the elements of the array in descending 
order?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How can you sort the elements of the array in descending order?
Answer
# 1
By calling  Sort() and Reverse()  methods we can sort the 
elements in descending order.
 
Is This Answer Correct ?    0 Yes 0 No
Swapna
 
  Re: How can you sort the elements of the array in descending order?
Answer
# 2
int[] arr = new int[4];
        arr[0] = 22;
        arr[1] = 33;
        arr[2] = 11;
        arr[3] = 44;
        Array.Sort(arr);//First sort the array in accending 
order
        Array.Reverse(arr);//then do reverse of array for 
descending order
        foreach (int a in arr)
        {
            Response.Write(a+"--");
        }
 
Is This Answer Correct ?    0 Yes 0 No
Anubhav Gupta
 
 
 

 
 
 
Other C Sharp Interview Questions
 
  Question Asked @ Answers
 
How is the memory managed in C#.  1
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?  1
what is the use of master pages. how to use it  1
Describe the accessibility modifier protected internal. Visual-Soft1
How can you sort the elements of the array in descending order?  3
Why we can't create the object of abstract class ? IBM5
Does C# support multiple inheritance? Visual-Soft3
What?s the top .NET class that everything is derived from?  2
What statements can enclose a "continue" statement?  2
What?s the implicit name of the parameter that gets passed into the class? set method?  1
Can you allow class to be inherited, but prevent the method from being over-ridden?  2
What is the difference between readonly and constant in c# Fulcrum-Logic1
ctype(123.34,integer) - should it throw an error? Why or why not? Wipro1
How?s method overriding different from overloading? Visual-Soft2
hi In my database i put id column as identity(the database is incremented by it self only)what i want is if i enter a data in my website, id will come automatically can u pl z tell me the code thax in advance  1
how to access the virtual method without creating the objet for the virtual method?  1
Can you inherit multiple interfaces?  3
How can we Achieve Late binding in C#.Can any give one example. Value-Labs3
localization using windows c#  2
What is the difference between TypeOf, GetType and what are the uses of TypeOf, GetType. Siemens2
 
For more C Sharp Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com