You are on page 1of 3

1. What is the root class in .Net ?

System.object is the root class in .net

2. How different are interface and abstract class in .Net?

An abstract class is one that cannot be instantiated which can contain either
abstract methods or non abstract methods.also it can contain methods with any
type of access specifiers.
Coming to Interface is a one which is contract based one. ie contrast means its
methods or properties must be compulsorily implemented. also the access specifier
should be public.

3.what is assembly?

Answers:

Assemblies are similar to dll files. Both has the reusable pieces of code in the form
of classes/ functions. Dll needs to be registered but assemblies have its own
metadata.
Or
Assembly is a single deployable unit that contains information about the
implementation of classes, structures and interfaces. it also stores the information
about itself called metadata and includes name and verison of the assembly,
security information, information about the dependencies and the list of files that
constitute the assembly.
Assembly also contains namespaces. In the .Net Framework, applications are
deployed in the form of assemblies.
Or
An assembly is a single deployable unit that contains all the information about the
implementation of :
- classes
- structures and
- interfaces
An assembly stores all the information about itself. This information is called
METADATA and include the name and the verison number of the assembly, security
information, information about the dependencies and a lost of files that constitute
the assembly.
All the application developed using the .NET framework are made up of assemblies.
Namespaces are also stored in assemblies

Two types of assemblys: Shared assembly and private assembly.

3. Describe ways of cleaning up objects.

The run time will maintain a service called as garbage collector.this service will take
care of deallocating memory corresponding to objects.it works as a thread with least
priority.when application demenads for memory the runtime will take care of
setting the high priority for the garbage collector,so that it will be called for
execution and memory will be release

The previous answer (GC will take care of deallocating memory) is correct. But still
you can dispose the object.
ex: object.dispose()
or
object=Nothing.

4. How do you create a permanent cookie?

By setting the expiry date of the cookie to a later time (like 10 years later.)

To Creating permanent Cookie to client side you can use ExpireyDate property of
the cookie, to make it permanent set it cookie.ExpireyDate = DateTime.MaxValue

cookie.ExpireyDate == DateTime.MaxValue

5. How do you create a permanent cookie?

6.difference between thread and process?

Thread - is used to execute more than one program at a time.


process - executes single program

Or

A thread is a path of execution that run on CPU, a proccess is a collection of


threads that share the same virtual memory. A process have at least one thread of
execution, and a thread always run in a process context.

7.on internate where will you look for web services.

UDDI.org-Universal Description,Discovery Integration

8. How does the lifecycle of Windows services differ from Standard EXE?

Windows services lifecycle is managed by ?Service Control Manager? which is


responsible for starting and stopping the service and the applications do not have a
user interface or produce any visual output, but ?Standard executable? doesn?t
require Control Manager and is directly related to the visual output

What is connection pooling and how do you make your application use it?
Opening database connection is a time consuming operation.
Connection pooling increases the performance of the applications by reusing the
active database connections instead of create new connection for every request.
Connection pooling Behaviour is controlled by the connection string parameters.
Follwing the the 4 parameters that control most of the connection pooling
behaviour.
1. Connect Timeout
2. Max Pool Size
3. Min Pool Size
4. Pooling
Please go through the following link as well
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q169470

You might also like