VB.Net Interview Questions and Answers
Question - 51 : - What is Delegate?
Answer - 51 : -
A delegate is defined as an object that can refer to a method. Whenever a delegate is assigned to a method, it behaves exactly like that method.
Example:
public delegate int performaddition(int z, int b);
Question - 52 : - What is Enumerator?
Answer - 52 : -
An Enumerator or Enum is a value type with a set of constants given to the set of the list. Enumeration is used when definition is required for more than one number.
Question - 53 : - What are nested classes?
Answer - 53 : -
A class that can be declared within the scope of another class. These classes are considered within the scope of the enclosed class and are available within that class or scope.
Question - 54 : - What is hashtable?
Answer - 54 : -
Hashtable is set to be items with key and value pairs. Keys are referred as indexes and quick search can be performed for values by searching through the keys.
Question - 55 : - What is the difference between int and int32?
Answer - 55 : -
Int32 represent 32-bit signed integer whereas int is not a keyword used in VB.Net.
Question - 56 : - What is the difference between System.String and System.StringBuilder classes?
Answer - 56 : -
System.string class is non-updatable and it will create new string object instead of updating the same. But updation in the same string object is possible for String. Stringbuilder class. So, the operation on string builder is faster and efficient than the string class.
Question - 57 : - What are the two main parts of .NET?
Answer - 57 : -
They are – Common Language Runtime (CLR) and .NET Framework class library.
Question - 58 : - What is the difference between thread and process?
Answer - 58 : -
Thread is used to execute more than one program at a time. Whereas, Process executes single program at a time.
Question - 59 : - What is strong typing and weak typing?
Answer - 59 : -
Strong type is checking the types of variables at compile time and weak type is checking the types of system as late as possible which is nothing but run time.
Question - 60 : - How many .NET languages can a single .NET DLL contain?
Answer - 60 : -
Only one language will be supported by one DLL.