VB.Net Interview Questions and Answers
Question - 41 : - What is Managed code?
Answer - 41 : -
Managed Code is used to run inside the CLR environment and it is called as .NET run time. All Intermediate Language (IL) are set to be Managed code.
Question - 42 : - What is CLS?
Answer - 42 : -
Common Language Specification is a subset of CTS and it is used to unite all languages in to one umbrella. This extends to support all the .NET language into one unit.
Question - 43 : - What is CTS?
Answer - 43 : -
CTS is Common Type System which is used to communicate smoothly between the languages. For example, if VB has Integer data type and C++ has long data type and these data types are not compatible.
In order to be compatible, CTS can be used as an interface between two languages.
Question - 44 : - What is Global Assembly Cache (GAC)?
Answer - 44 : -
GAC is used where shared .NET assembly resides. It is used in the following criteria:
- If .Net assembly has special security requirements
- If .Net application has to be shared with other applications
Question - 45 : - What are the types of Authentication?
Answer - 45 : -
There are three types of Authentication and they are –
- Windows Authentication
- Forms Authentication
- Passport Authentication
Question - 46 : - What is Authentication and Authorization?
Answer - 46 : -
Authentication is the process of obtaining credentials from the users and verifying the user’s identity. Authorization is the process of giving access to the authenticated resources. Authentication leads to Authorization.
Question - 47 : - What is TRACE in VB.Net?
Answer - 47 : -
TRACE allows the user to view how the code has been executed in detail. This tells how the code is working.
Question - 48 : - What is the difference between value and reference types?
Answer - 48 : -
Value types directly store the data and it is allocated to stack. Reference type store a reference to the value’s memory address and are allocated to heap.
Question - 49 : - What is the difference between Dataset and Datareader?
Answer - 49 : -
DataReader | Dataset |
Datareader has read only access to the data and it is set to be forward only. | Dataset can hold more than one table from the same data source. It even stores relationships between tables. |
Datareader cannot persist contents as it is read only | Dataset can persist contents |
Datareader is connected architecture | Dataset is disconnected architecture |
Question - 50 : - What is Globalization?
Answer - 50 : -
Globalization is nothing but making the application Internationalize and localizing the application to other languages or cultures. Culture is nothing but a combination of Language(English) and the location like US or UK.