VB.NET Interview Questions and Answers
Q1. What is ASP Net and VB Net?
Ans: ASP.Net is a Web Development SDK/Framework. You write code in a programming language and you use a SDK to speed up development. .Net is a framework that you use when programming in vb.Net, C# or some other language which can be compiled into msil.
Q2. What is the difference between VB 6.0 and VB Net?
Ans: VB had its very own runtime, where VB.NET is one among many languages that use the extra modern .NET Framework. The best alternate in VB6 and VB.NET is of runtime environment. VB6 used the VB-Runtime at the same time as VB.NET uses the .Net Common Language Runtime (.Net CLR). The CLR is an awful lot better designed and implemented than VB-Runtime.
Q3. What are all of the components of .Net Framework?
Ans:
Common Language Runtime
.Net Framework Class Library
Q4. What’s the distinction between private and shared assembly?
Ans: Private assembly is used internal an application handiest and does not need to be recognized by using a robust name.
Shared meeting can be utilized by a couple of programs and has to have a sturdy name.
Q5. What is the default cost for Boolean variable in VB.NET?
Ans: The default boolean fee is False in VB.Net
Q6.What Does Vs.Internet Contains ?
Ans: Visual Studio .Net is largely a framework which makes clean development of codes written in Various programming languages.. It incorporates two matters
1.Framework Class Library: It consists of numerous instructions managed inside various namespaces.
2.Common Language Runtime: CLR is the execution engine which facilitates in compiling the IL code into gadget code,looks after protection problems and plenty of other critical obligations.Web pages, home windows apps, console programs, Class libraries are various alternatives which may be created the usage of VS.Internet.
Q7. What Is Versioning In .Net?
Ans: most important benefit of .Net is versioning and solve very critical trouble.
.Net keep one software with more then one model and also solve DLL HELL hassle due to the fact it could run identical utility with unique version at a equal time[.Net have an Assembly. It gives the Portable Execution file.The main use of assembly is to maintain the Dll and exe's.
So sometimes the programmer confused to which is modified code.That time the assembly provide the Version.That is called versioning. It is start from 1.0.*,.......]
Q8. What are the advanatages of VB.NET
Ans:
VB.NET is definitely object orientated. This is a main addition that VB6 and other in advance releases did not have.
Handling Pointers indirectly – This presents much less possibility of instability within the produced utility; aka produced programs are more at ease and strong.
With Option Strict off past due binding is supported.Legacy VB functionalities may be used by the usage of Microsoft.VisualBasic namespace.
VB.NET gives controlled code execution that runs under the Common Language Runtime (CLR), ensuing in robust, strong and relaxed packages. All functions of the .NET framework are conveniently available in VB.NET.
Has aid for elective parameters which makes COM interoperability a good deal smooth.
VB.NET makes use of XML to transfer records among the diverse layers in the DNA Architecture i.E. Facts are handed as simple textual content strings.
The CLR looks after rubbish series i.E. The CLR releases assets as soon as an item is no more in use. This relieves the developer from deliberating approaches to manipulate memory. CLR does this for them
Q9. What is access factor method of VB.NET application?
Ans: Public Sub Main() indicates the access point of VB.Net software.
Q10. What is the use of console application?
Ans: Console Applications are command-line oriented packages that permit us to examine characters
from the console, write characters to the console and are done inside the DOS model. Console
Applications are written in code and are supported with the aid of the System. Console namespace.
Q11. What are elegance get admission to modifiers?
Ans: Access modifiers are key phrases used to specify the declared accessibility of a member or a kind. This phase introduces the four get right of entry to modifiers :
Public
Protected
Internal
Protected inertnal
Private
Q12. What is TRACE in VB.Net?
Ans: TRACE permits the person to view how the code has been finished in detail.
Q13. Enlist Controls in Windows Forms to Select Data from a listing of VB.NET.
Ans: The Windows Forms Controls to Select Data from a List are as follows:
1. CheckedListBox
2. ComboBox
3. DomainUpDown
four. List Box
5. List View
Q14. What is Object Oriented Programming Approach?
Ans: Object Oriented Programming offers a manner of modularizing applications by means of growing partitioned memory location for functions as well as records that may be used as templates for developing copies of such modules on demand. OOP permits decomposition of a problem right into a severa entities known as Objects. It then builds statistics and functions round those items.
Q15. Is it viable Vb.Net lessons derived in C# ?
Ans: Since VB.Net Adheres to Common Type system it's far feasible to derive a category written in VB.Net in C#.
Q16. How do you trigger an occasion in VB.NET?
Ans: You ought to send a button as sender into the occasion handler:
btnStart_Click(btnStart, New EventArgs())
Q17. What is Garbage Collection?
Ans: Garbage Collection is in the main used for Memory Management. The .NET Framework’s Garbage Collection manages the allocation and launch of the reminiscence to your packages. The garbage collector assessments for gadgets in the managed heap that are not being used by the packages whilst it plays rubbish collection.
Q18. What is the difference between .Dll extension and .Exe extension files?
Ans: The essential difference among .Dll and .Exe is
.Dll is the In system thing where it take in the consumer's memory area to run. So the communique among the application and component(dll) may be very fast.
.EXE is the Out of process aspect. It uses its personal reminiscence(now not software reminiscence) to run the factor. The communication between the application and element is sluggish whilst as compared to .Dll
Q19. Explain Protected Friend Access Modifier in VB.NET.
Ans: The Protected and Friend keywords together within the announcement declaration specify that the elements in the equal assembly or both.
Example:Protected Friend demoString As String
It may be used most effective at class stage however not at degree of Source File or Namespace or inside an Interface, Module, Structure or Procedure.
Q20. Difference among VB mdi form and .Net mdi form?
Ans: In VB MDI form is created via adding MDI Form to the assignment and including baby paperwork by setting MDICHILD assets of the child shape.
In .NET there's no MDI form, any form may be made a MDI parent by means of placing IsMdiContainer property to TRUE.
Q21. What are Shared Assemblies?
Ans: When personal meeting is installed in Global Assembly Cache, it's miles called as Shared Assembly. It does now not create any bodily replica and while the Assembly is hooked up in GAC, it could be mentioned any .NET application.
Q22. Can you create a characteristic in VB.NET that can accept varying number of arguments?
Ans: By using the params keyword, a technique parameter can be exact which takes a variable range of arguments or even no argument.
Q23. How does CAS paintings?
Ans: The CAS security coverage revolves around key concepts - code companies and permissions. Each .NET assembly is a member of a particular code group, and each code organization is granted the permissions specified in a named permission set
Q24. What is Assembly Manifest?
Ans: Every Assembly carries an Assembly Manifest. It includes the following:
1. The Assembly’s Identity (Name and Version)
2. File Table describing all different documents that make up the assembly.
3. Assembly Reference List that incorporates information approximately External Dependencies.
Four. Global Objects
Q25. Explain .NET compilation method.
Ans:
Compilation of source code to managed code / Intermediate Language (IL).
Compilation of IL to platform-precise code by the CLR.
MSIL defines a fixed of portable commands that are independent of any particular CPU.
Q26. Enlist the Garbage Collection Methods in .NET Framework.
Ans: The .NET Framework rubbish series methods are as follows:
1. Dispose
2. Finalize

