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.
 
Your Name Your Email-ID
Your Answer
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:
 
Your Name Your Email-ID
Your Answer
103. How to run a Dos command in Vb.net?
  Shell("cmd.exe /c c:\first.exe < in.txt > out.txt")
 
Your Name Your Email-ID
Your Answer
104. What are the assembly entry points?
  An assembly can have only one entry point from DllMain, WinMain or Main.
 
Your Name Your Email-ID
Your Answer
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.
 
Your Name Your Email-ID
Your Answer