|
VB.NET Interview questions and answer part 5.
By Nishant Kumar
Explain how to retrieve information
from the configuration file at run time. | Define
imperative and declarative security. | What is a
shared assembly? | Define XCOPY deployment.
| What is a native image? | What is a
bootstrapper application?
Question - Explain how to retrieve information
from the configuration file at run time. Answer - To retrieve
information from the configuration file. Create an instance of
AppSettingsReader to read the configuration file. Call the
GetValue method to read values represented in the configuration
file. To add configuration file entries Create elements
in the node of the configuration file. Specify a
value for the entry and a key in the element.
Question - Define imperative and
declarative security. Answer - Imperative security
is implemented by calling methods of Permission objects in code at
run time. Declarative security is configured by attaching attributes
representing permissions to classes and methods. Additionally, you
can request assembly-wide permissions using the Assembly (assembly)
directive with declarative security.
Question - What is a shared assembly?
Answer - An assembly that can
be shared by multiple applications. To make an assembly a shared
assembly, first assign it a strong name, and install it to the
global assembly cache.
Question - Define XCOPY
deployment. Answer - It is a simple DOS command method of deployment. It copies
the application directory and any subdirectories to the target
machine. It is used when an application has no dependency on shared
files. This method is not for complex deployment.
Question - What
is a native image? Answer - It is a precompiled
version of a .NET assembly. Native image of the application can be
created by using the Ngen.exe utility.
Question
- What is a bootstrapper application?
Answer - A bootstrapper
application automatically detects if Windows Installer is installed
on the target machine. If Windows Installer is not present, it
installs Windows Installer before proceeding with the rest of the
installation.
Part 1 | Part 2 | Part 3 | Part 4 | part
5
<<Previous Next>>
|