.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!




Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Post New Question Subscribe to Interview Questions
 
Quick Links For Interview Questions Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  OOPs  JQuery  JavaScript/VBScript
BiztalkPatten/Practices.IISWCFWPFWWF
NetworkingAptitudeOthers  All    
 

Interview Questions And Answers

What is the concept of destructors in VB.NET?

Author: Subhransu Sekhar Jena          Posted Date: October 31, 2014    Category: VB.Net     Points: 40

Destructors are used to de-allocate resources i.e. to clean up after an object is no longer available.

Some of the documented properties are not available when I use the control in VB.NET. How can I access these properties?

Author: Subhransu Sekhar Jena          Posted Date: October 31, 2014    Category: VB.Net     Points: 40

Indexed properties, for example, the DeviceName property in TwainControlX, are not directly supported in VB.NET. These properties become hidden when the control is wrapped for use in the .NET environment. This problem is easily solved by prefixing the property name with either 'get_' or 'set_' depending whether the property is being read or written.

What is the difference between System exceptions and Application exceptions?

Author: Subhransu Sekhar Jena          Posted Date: October 31, 2014    Category: VB.Net     Points: 40

SystemExceptions are thrown by the CLR and are of more generic nature, whereas, ApplicationExceptions are thrown by Applications. Therefore when creating a custom Exception class we should only inherit it from Application Exception and not SystemException.

What is the purpose of AddHandler keyword?

Author: Subhransu Sekhar Jena          Posted Date: October 31, 2014    Category: VB.Net     Points: 40

Addhandler associates an event with its handler at runtime.

What are the options for stepping through code?

Author: Subhransu Sekhar Jena          Posted Date: October 31, 2014    Category: VB.Net     Points: 40

1.Show next statement
2.step into
3.step over
4.step out

How do you create a resource-only assembly?

Author: Subhransu Sekhar Jena          Posted Date: October 31, 2014    Category: VB.Net     Points: 40

One should create a resource only assembly if you need to update the resources frequently without recompiling the whole solution.
Steps to create it are:
a. Create a new empty project.
b. Add a new resource item to the project.
c. In project's property pages, choose output type as class library..
d. Build project to have the resource files being compiled in an assembly.

What are the limitations of XML serialization?

Author: Subhransu Sekhar Jena          Posted Date: October 31, 2014    Category: VB.Net     Points: 40

XML serialization has some limitations. It converts public property values and fields, but does not encode type information. Also it does not encode private properties and fields, which requires binary serialization. Any class to be serialized to XML must have a public, parameterless constructor. One advantage of XML serialization is that the serialized data, being XML, rarely has any problems passing over networks and through security measures, such as firewalls, that might be unhappy with a binary data stream. For this reason, XML serialization is used by .Net Web services. Another advantage is that XML serialization is not platform-specific. In other words, you do not have to have .Net or Windows on both ends of the process.

Describe exception handling in VB.NET?

Author: Subhransu Sekhar Jena          Posted Date: October 31, 2014    Category: VB.Net     Points: 40

The Try block encapsulate set of code that is error prone and can throw exception. If an exception is thrown, it can be caught in an appropriate Catch (catch) block. You have Finally block that can contain code that must be executed even if no exception is handled.

Why do you use properties instead of fields?

Author: Subhransu Sekhar Jena          Posted Date: October 31, 2014    Category: VB.Net     Points: 40

You can provide validation code with properties that validate data being read or set. You can not add any validation code while using fields.

Define field-level validation and form-level validation?

Author: Subhransu Sekhar Jena          Posted Date: October 31, 2014    Category: VB.Net     Points: 40

Field-level validation means validating each field as it receives focus. Form-level validation is the process where you validate all data on a form before form is submitted.
« Previous12345678910….472473Next »


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend