|
VB.NET Interview questions and answer part 4.
By Nishant Kumar
Part 1 | Part 2 | Part 3 | Part 4 | part
5
Briefly
describe DataView. | Define an
XmlDataDocument. | Define SQL injection
attack? | ReadXML, WriteXML, GetXML |
Briefly describe user-defined controls. |
Describe the role of the LicenseProvider in control
licensing. | What are the requirements to access
of the Certified for Windows logo program? | Steps to create localized
form. | Explain the difference
between Globalization and Localization. | What is
strong name? | How do you retrieve resources at
run time.
Question - Briefly describe DataView.
Answer - The data represented
in a DataView object can be filtered and sorted. It has Sort
property and RowFilter property.
Question - Define an
XmlDataDocument. Answer - An XmlDataDocument is
an in-memory representation of data in a hierarchical XML format and
is synchronized with a DataSet. You can use the XmlDataDocument to
perform XML manipulations on a DataSet.
Question - Define SQL injection attack?
Answer - It occurs when SQL
string is passed as user input to the application. SQL injection
attack is prevented by validating the format of all strings passed
as user input.
Question -
ReadXML, WriteXML, GetXML Answer - ReadXML: The dataset
method that reads data from an XML file into a dataset. WriteXML:
GetXML: Retrieve data from a dataset in XML file.
Question - Briefly describe user-defined
controls. Answer - Inherited controls,
user controls, and custom controls
Question -
Describe the role of the LicenseProvider in control licensing.
Answer - The LicenseProvider
controls license validation and grants run-time licenses to validly
licensed components.
Question
- What are the requirements to access of the Certified for Windows
logo program?
Answer -
Question - Steps to create localized form.
Answer - Set the Localizable
property to true. Set the Language property to the
language/region. Make any localization-related changes in the
UI. The changed property values will automatically be stored in
resource files. To load appropriate resource file,
CurrentUICulture is set to the appropriate CultureInfo.
Question
- Explain the difference between Globalization and Localization.
Answer - Globalization refers
to the application of culture-specific format to existing data.
Localization refers to providing new culture-specific resources and
retrieving the appropriate resources based on the culture setting.
Question - What is strong
name? Answer - Create Key file with
the strong name utility (sn.exe). Specify the key file in the
AssemblyInfo file.
Question - How do you retrieve
resources at run time. Answer - Create an instance of the ResourceManager class using the
assembly that contains the desired resource. Use the GetString
method to retrieve string resources or the GetObject method to
retrieve object resources.
Part 1 | Part 2 | Part 3 | Part 4 | part
5
<<Previous Next>>
|