Home | Contact Us | Log In | Help
HOME NEW LISTING MOST POPULAR HIGHEST RATED SCRIPTS ADD SCRIPT DOWNLOADS FORUM
Tutorials
  ASP.Net & C#
  ASP
  Perl and PHP
  Java Scripts
  C and C++
  Ajax Tutorials
  J2ee, J2Me, Java
  Python & Ruby Rail
  Crystal Report
  Sap
  CGI
  XML
  Cold Fusion & CFML
  HTML, DHTML & CSS
  Dreamweaver
  FLASH
  Photoshop/Web Designing
  Tools & Utilities
  Oracle/D2K
  Sql Server
  MySql
  Domain Name Registration
  Remotely Hosting
  Web/Server Application
  Hotel Marketing
  Internet and Law
   Search Engine Optimization/SEO
E-Commerce
Interview Questions
Previous < 1 2 3 4 5 > Next
ASP.Net & C# (INTERVIEW QUESTIONS) 2
  What is the adv of using System.Text.StringBuilder over System.String?

StringBuilder is more efficient in cases where there is a large amount of string manipulation.  Strings are immutable, so each time a string is changed,
a new instance in memory is created.

   
  Can you store multiple data types in System.Array?

No

 
  What is the diff between the System.Array.CopyTo() and System.Array.Clone()?

The Clone() method returns a new array (a shallow copy) object containing all
the elements in the original array. The CopyTo() method copies the elements
into another existing array.Both perform a shallow copy.
A shallow copy means the contents (each array element) contains references
to the same object as the elements in the original array. A deep copy
(which neither of these methods performs) would create a new instance
of each element's object, resulting in a different, yet identacle object.

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

By calling Sort() and then Reverse() methods

 
  What is the .NET collection class that allows an element to be accessed using a unique key?

HashTable.

 
  What class is underneath the SortedList class?

A sorted HashTable.

 
  Will the finally block get executed if an exception has not occurred?

Yes.

 
  What is the C# syntax to catch any possible exception?

A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch { }.

 
  Can multiple catch blocks be executed for a single try statement?

No.Once the proper catch block processed, control is transferred
to the finally block (if there are any).

 

Previous < 1 2 3 4 5 > Next

  Copyright 2000-2006 © SoloScript.com, All rights reserved.