Pages

Tuesday, 15 September 2015

110 Latest VB.Net Interview questions and answers pdf free download

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.

No comments:

Post a Comment