VB Dotnet Interview Questions and Answers Pdf - 3

Question: 11

What are the satellite assemblies?

In a multilingual or multi-cultural application, the localized assemblies, which contain language specific instructions that modify the core application, are kept separately and they are called satellite assemblies.

Question: 12

What is a proxy of the server object in .NET Remoting?

It is a fake copy of the server object that resides on the client side and behaves as if it was the server.

It handles the communication between real server object and the client object.

This process is also known as marshaling.

Question: 13

What is Marshalling?

Marshaling is a process of making an object in one process (the server) available to another process (the client).

There are two ways to achieve the marshalling.

Marshal by value: the server creates a copy of the object passes the copy to the client. When a client makes a call to an object marshaled by value (MBV), the server creates an exact copy and sends that copy to the client. The client can then use the objects data and executable functionality directly within its own process or application domain without making additional calls to the server. Objects that the application accesses frequently are best remoted using MBV.

Marshal by reference: the client creates a proxy for the object and then uses the proxy to access the object. When a client makes a call to an object marshaled by reference (MBR), the .NET framework creates a proxy in the clients application domain and the client uses that proxy to access the original object on the server. Large objects that the application accesses relatively infrequently are good candidates for MBR.

Question: 14

When should you call the garbage collector in .NET?

As a good rule, you should not call the garbage collector. However, you could call the garbage collector when you are done using a large object (or set of objects) to force the garbage collector to dispose of those very large objects from memory. However, this is usually not a good practice.

Question: 15

Explain JIT activation?

The objective of JIT activation is to minimize the amount of time for which an object lives and consumes resources on the server.

With JIT activation, the client can hold a reference to an object only when the client calls a method on the object.

After the method call is completed, the object is freed and its memory is reclaimed.

JIT activation enables applications to scale up as the number of users increases.

Related Questions