• +91 9723535972
  • info@interviewmaterial.com

VB.Net Interview Questions and Answers

VB.Net Interview Questions and Answers

Question - 11 : - How is a property designated as read-only?

Answer - 11 : -   In VB.NET: Private mPropertyName as DataType Public ReadOnly Property PropertyName() As DataType     Get Return mPropertyName     End Get End Property

Question - 12 : -
What does it meant to say “the canonical” form of XML?

Answer - 12 : -   "The purpose of Canonical XML is to define a standard format for an XML document. Canonical XML is a very strict XML syntax, which lets documents in canonical XML be compared directly. Using this strict syntax makes it easier to see whether two XML documents are the same. For example, a section of text in one document might read Black & White, whereas the same section of text might read Black & White in another document, and even in another. If you compare those three documents byte by byte, they'll be different. But if you write them all in canonical XML, which specifies every aspect of the syntax you can use, these three documents would all have the same version of this text (which would be Black & White) and could be compared without problem. This Comparison is especially critical when xml documents are digitally signed. The digital signal may be interpreted in different way and the document may be rejected.

Question - 13 : - How do you convert a string into an integer in .NET? Question - 15 : -  What's the difference between const and readonly?

Answer - 15 : -   The readonly keyword is different from the const keyword. A const field can only be initialized at the declaration of the field. A readonly field can be initialized either at the declaration or in a constructor. Therefore, readonly fields can have different values depending on the constructor used. Also, while a const field is a compile-time constant, the readonly field can be used for runtime constants as in the following example: public static readonly uint l1 = (uint) DateTime.Now.Ticks;

Question - 16 : - What does \a character do?

Answer - 16 : - On most systems, produces a rather annoying beep.

Question - 17 : - What happens when you encounter a continue statement inside the for loop?

Answer - 17 : -   The code for the rest of the loop is ignored, the control is transferred back to the beginning of the loop.

Question - 18 : - Why is it a bad idea to throw your own exceptions?

Answer - 18 : -   Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project.

Question - 19 : - What's the difference between // comments, /* */ comments and /// comments?

Answer - 19 : -   Single-line, multi-line and XML documentation comments.

Question - 20 : - What Is Vb.net?

Answer - 20 : - Vb.net is a programming language that is available in Visual Studio. Net. It contains features of visual basic which is event based programming language and also includes object oriented concepts. [VB.Net is a programming language which is an extension of Visual Basic to make it compliant to the Dot Net Framework. Also VB.Net is fully Object Oriented unlike Visual Basic and everything in VB.Net is an object. As it is compliant to the Dot Net Framework VB.Net can make full use of Framework Class Library provided by dot Net Framework


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners