Breaking News
Loading...
Tuesday 7 August 2012

VB.Net Interview Question and Answers 6

05:05
76. What are the difference between Structure and Class?
Structures are value type and Classes are reference type.
Structures can not have contractors or destructors. Classes can have both contractors and destructors.
Structures do not support Inheritance, while Classes support Inheritance

77. What is difference between Class And Interface?
Class : is logical representation of object. It is collection of data and related sub procedures with defination.
Interface : is also a class containg methods which is not having any definations.Class does not support multiple inheritance. But interface can support.

78. What is the use of ErrorProvider Control?
The ErrorProvider control is used to indicate invalid data on a data entry form.

79. How many languages .NET is supporting now?
When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. 44 languages are supported.

80. How many .NET languages can a single .NET DLL contain?
Many.

81. What is metadata?
Metadata means data about the data i.e., machine-readable information about a resource, . Such information might include details on content, format, size, or other characteristics of a data source. In .NET, metadata includes type definitions, version information, external assembly references, and other standardized information.

82. What is the difference between Custom Control and User Control?
Custom Controls are compiled code (Dlls), easier to use, difficult to create, and can be placed in toolbox. Drag and Drop controls. Attributes can be set visually at design time.
AUser Control is shared among the single application files.

83. What keyword is used to accept a variable number of parameter in a method?
“params” keyword is used as to accept variable number of parameters.

84. What are different types of JIT ?

There are three types of jit :
  • pre - jit
  • Econo - jit
  • Normal - jit.
85. What is difference between C# And Vb.net?
C# is case sensitive while VB is not case sensitive.
vb.net does not support xml while c# support xml
vb.net supports with constructor while c# do not.

86. What does assert() method do?
In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true.

87. Why string are called Immutable data Type?
The memory representation of string is an Array of Characters, So on re-assigning the new array of Char is formed & the start address is changed . Thus keeping the Old string in Memory for Garbage Collector to be disposed.

88. What is the difference between Convert.toString and .toString() method?
Convert.toString handles null while i.tostring() does not handles null.

89. How many types of Transactions are there in COM + .NET ?

There are 5 transactions types that can be used with COM+.
  • Disabled
  • Not Supported
  • Supported
  • Required
  • Required New
90. What is a DataTable?
A DataTable is a class in .NET Framework and in simple words a DataTable object represents a table from a database.

<< 1 2 3 4 5 6 7 8 >>

Share This :
Tags:

0 comments:

Post a Comment

 
Toggle Footer