.NET Framework Interview Questions and Answers (547) - Page 8

Webservices support data reader.

NOTE: This is objective type question, Please click question title for correct answer.
Can we have two files with the same file name in GAC?

Yes, we can add two files with same name in GAC using versioning.
Difference between String and StringBuilder class?

the string class is immutable and therefore very inefficient if you need
to change it once it is constructed. For those cases, StringBuilder is
almost always a better choice. in case of string new object is create every time when we concate string.
Does ADO.NET supports automatic connection pooling?

Yes.

There is a pooling property with connection string. By default it is set to true.
Use this property to specify that a particular connection should not participate in the pool, but instead should be destroyed when it is closed.
Does CLR impose a strict versioning policy for the private assembly?

Answer is No. Private assembly are used by the application in which they are deployed. To use private assembly in any application, one needs to deploy them in the application's directory. Versioning needs to done for shared assembly which are stored in GAC and used by multiple applications.
How .NET Framework 2.0 tackles the unhandled exceptions?

For .NET Framework 2.0,There is a change in the behavior in which on any unhandled exception, .NET Framework 2.0 just ends the worker process. This exception cannot be caught as it is in the .Net framework 2.0, and when the .Net Framework "goes down", it also crashes the application. In .NET Framework 1.0 or 1.1, unhandled exceptions were ignored.

Workaround for this is :

Add this section in your app.config file.

<?xml version="1.0" encoding="utf-8" ?>

<configuration>
<runtime>
<legacyUnhandledExceptionPolicy enabled="true" />
</runtime>
</configuration>


Thanks,
Virendra Dugar
What are the differences between .NET Framework 3.0 and 3.5?

- .NET 3.0 is the combination of .NET Framework 2.0 with WCF, WPF, WF and cardspace.
- .NET 3.5 is the combination of .NET Framework 3.0 with New AJAX controls, LINQ, Richer WCF support, Silverlight Support...
What is Runtime Host ?

Ranging from Windows applications, Web applications to Mobile applications, CLR is designed to support various types of applications. .NET Framework provides different types of runtime hosts to manage the execution of application code(to load runtime in to process, create application domain within process, load user code in to application domain) and provides various services to the application.

Runtime hosts included in .Net framework are : ASP.NET, Microsoft Internet Explorer and windows shell.
In how many ways you can deploy an Asp.Net Application?

NOTE: This is objective type question, Please click question title for correct answer.
This serves as a wrapper for a globally unique identifier (GUID) for a COM class…

NOTE: This is objective type question, Please click question title for correct answer.
This is generalized Clipboard format containing view of the data, and a storage medium indicator…

NOTE: This is objective type question, Please click question title for correct answer.
This Contains values that are used to create buttons on a toolbar…

NOTE: This is objective type question, Please click question title for correct answer.
This Enum is used with TextFieldParser Object to determine either fields are delimited or fixed width…

NOTE: This is objective type question, Please click question title for correct answer.
This namespace provides classes to run the Assembly Registration tool from managed code…

NOTE: This is objective type question, Please click question title for correct answer.
This namespace is used for constructing the communication pipeline between a host application and an add-in…

NOTE: This is objective type question, Please click question title for correct answer.
To manage installer of custom componenet the namespace used is,…

NOTE: This is objective type question, Please click question title for correct answer.
Which one is faster ?

NOTE: This is objective type question, Please click question title for correct answer.
System.Collections.Specialized Namespace contains…

NOTE: This is objective type question, Please click question title for correct answer.
HybridDictionary Class implements…

NOTE: This is objective type question, Please click question title for correct answer.
IOrderedDictionary elements can be accessed with,…

NOTE: This is objective type question, Please click question title for correct answer.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories