Breaking News
Loading...
Tuesday 7 August 2012

VB.Net Interview Question and Answers 8

05:05
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.

106. What are the types of Authentication?

There are 3 types of Authentication.
  • Windows Authentication
  • Forms Authentication
  • Passport Authentication
107. What namespaces are necessary to create a localized application?
System.Globalization
System.Resources

108. Which namespaces are used for data access?
  • System.Data
  • System.Data.OleDB
  • System.Data.SQLClient
109. What is a SESSION and APPLICATION object?
Session object store information between HTTP requests for a particular user.
Session variables are used to store user specific information where as in application variables we can’t store user specific information.
while application object are global across users.

110. What is static constructor?
A static constructor is used to initialize a class. It is called automatically to initialize the class before the first instance is created or any static members are referenced.

<< 1 2 3 4 5 6 7 8 >>

Share This :
Tags:

0 comments:

Post a Comment

 
Toggle Footer