VB.Net Interview Question and Answers
101. |
What is managed code execution? |
|
The .Net framework loads and executes the .Net applications, and manages the state of objects during program execution. This also provides automatically garbage collections. |
|
|
102. |
What is the strong name in .net assembly? |
|
- Strong Name is similar to GUID (It is supposed to be unique in space and time).
- In COM components. Strong name is only needed when we need to deploy assembly in GAC.
- Strong names use public key cryptography (PKC) to ensure that no one can spoof it. PKC use public key and private key concept. Following are the step to generate a strong name and sign an assembly:
|
|
|
103. |
How to run a Dos command in Vb.net? |
|
Shell("cmd.exe /c c:\first.exe < in.txt > out.txt") |
|
|
104. |
What are the assembly entry points? |
|
An assembly can have only one entry point from DllMain, WinMain or Main. |
|
|
105. |
What are remotable objects in .NET Remoting? |
|
Remotable objects are the objects that can be marshaled across the application domains. You can marshal by value, where a deep copy of the object is created and then passed to the receiver. You can also marshal by reference, where just a reference to an existing object is passed. |
|
|