What namespace is responsible for remoting in Dot Net?

Tuesday, August 4, 2009


System.Runtime.Remoting



www.codecollege.NET

What are the three measures in common use in Quality?


1. MEAN
2. MEDIAN
3. MODE




www.codecollege.NET

How will you implement observer pattern in .NET?


Observer pattern can be implemented using “Delegates” and “Events”.



www.codecollege.NET

What are Design Patterns ?


Design Patterns are best proven techniques for a common design problem. It is only a design technique and not code. Though code is available for almost all design patterns in all popular languages, design patterns mean the design technique alone.Each design pattern explains a repeated problem, gives standard solution to the problem.


www.codecollege.NET

What are the different types of diagram in UML?


1. Use Case Diagram
2. Class Diagram
3. Interaction Diagrams
4. Activity Diagram
5. State Diagram
6. Physical Diagrams



www.codecollege.NET

What are the differences between ASP Session and ASP.NET Session?


Asp.net session supports cookie less session & it can span across multiple servers whereas these are not available in ASP sessions.



www.codecollege.NET

In Which mode alone Session_Abandon is supported ?


InProc mode.



www.codecollege.NET

After What event are Sessions available ?


AcquireRequestState event.



www.codecollege.NET

How will you customize columns in Data Grid?


You can customize columns ina DataGrid using the Template column.



www.codecollege.NET

How can we format data inside Data Grid?


We can do that by Using the DataFormatString property.



www.codecollege.NET

Can a trigger be fired from a stored procedure?


Yes.



www.codecollege.NET

Can a DataReader persist data ?


No.



www.codecollege.NET

Which is faster among DataSet and DataReader ? Why ?


DataReader is faster as it has only one record at a time, and Dataset is slower as it fetches the entire table or set of tables.



www.codecollege.NET

What's use of "DataView" ?


It is used for sorting and finding data with in DataTable. .



www.codecollege.NET

What is the name of the method which reverts changes made to the DataSet?


The Method which is called to save the changes in a DataSet is,
RejectChanges().



www.codecollege.NET

What is the name of the Method which is called to save the changes in a DataSet ?


The Method which is called to save the changes in a DataSet is,
AcceptChanges().



www.codecollege.NET

Can we have multiple threads in one App domain ?


Yes.



www.codecollege.NET

What are two different types of remote object creation mode in .NET ?


Object can be created using Remoting in two different ways , they are :
1. SAO (Server Activated Objects)
It is also called as Well-Known call mode. It is stateless.
2. CAO (Client Activated Objects)
It has state.



www.codecollege.NET

What is CAS ?


CAS(Code Access Security) belongs to .NET Security Model and determines whether a piece of code is allowed to run or not and if allowed to run then what resources it can access.



www.codecollege.NET

What are the steps followed by the Garbage Collector ?


1. Mark all the managed memory as garbage
2. Look for used memory blocks, and mark them as valid memory
3. Discard all unused memory blocks
4. Compact the heap



www.codecollege.NET

What is the error that is thrown while a method is written without a return type. ?


Not all code paths return a value.



www.codecollege.NET

Can we apply access modifiers to the methods of an interface?


No.



www.codecollege.NET

Can we define variables in interfaces?


No.



www.codecollege.NET

What is the use of ADO.NET Connection Pooling ?


The use of ADO.NET Connection Pooling is it reuses connections from a pool of Connections instead of establishing connection every time.





www.codecollege.NET

How will you enable ADO.NET MARS ?


You can enable MARS by setting the MultipleActiveResultSets attribute in the Connection String as follows,

"Server=localhost;Database=Northwind;" +
"Trusted_Connection=True;MultipleActiveResultSets=True";




www.codecollege.NET

what is MARS in ADO.NET ?


MARS(Multiple Active Result Sets) allows you to execute multiple queries or Stored Procedures with a single Connection.



www.codecollege.NET

LinkWithin

Blog Widget by LinkWithin

Recommended Books