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 which you use when programming in vb.net, C# or any other language which can be compiled into msil.
Ans: VB had its own runtime, where VB.NET is one of many languages that use the more modern .NET Framework. The greatest change in VB6 and VB.NET is of runtime environment. VB6 used the VB-Runtime while VB.NET uses the .Net Common Language Runtime (.Net CLR). The CLR is much better designed and implemented than VB-Runtime.
Ans: Private assembly is used inside an application only and does not have to be identified by a strong name.
Shared assembly can be used by multiple applications and has to have a strong name.
Ans: The default boolean value is False in VB.Net
Ans: Visual Studio .Net is basically a framework which makes easy development of codes written in Various programming languages.. It contains two things
1.Framework Class Library: It contains various classes managed within various namespaces.
2.Common Language Runtime: CLR is the execution engine which helps in compiling the IL code into machine code,takes care of security issues and many other critical tasks.Web pages, windows apps, console applications, Class libraries are various options which can be created using VS.net.
Ans: main advantage of .net is versioning and solve very critical problem.
.net maintain one application with more then one version and also solve DLL HELL problem because it can run same application with different version at a same 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.*,.......]
Ans: Public Sub Main() indicates the entry point of VB.Net program.
Ans: Console Applications are command-line oriented applications that allow us to read characters
from the console, write characters to the console and are executed in the DOS version. Console
Applications are written in code and are supported by the System. Console namespace.
Ans: Access modifiers are keywords used to specify the declared accessibility of a member or a type. This section introduces the four access modifiers :
Ans: TRACE allows the user to view how the code has been executed in detail.
Ans: The Windows Forms Controls to Select Data from a List are as follows:
1. CheckedListBox
2. ComboBox
3. DomainUpDown
4. List Box
5. List View
Ans: Object Oriented Programming provides a way of modularizing programs by creating partitioned memory area for functions as well as data that can be used as templates for creating copies of such modules on demand. OOP allows decomposition of a problem into a numerous entities called Objects. It then builds data and functions around these objects.
Ans: Since VB.Net Adheres to Common Type system it is possible to derive a class written in VB.Net in C#.
Ans: You should send a button as sender into the event handler:
btnStart_Click(btnStart, New EventArgs())
Ans: Garbage Collection is primarily used for Memory Management. The .NET Framework’s Garbage Collection manages the allocation and release of the memory to your applications. The garbage collector checks for objects in the managed heap that are no longer being used by the applications when it performs garbage collection.
Ans: The main difference between .dll and .exe is
.dll is the In process component where it take up the client's memory space to run. So the communication between the application and component(dll) is very fast.
.EXE is the Out of process component. It uses its own memory(not application memory) to run the component. The communication between the application and component is slow when compared to .dll
Ans: The Protected and Friend keywords together in the declaration statement specify that the elements within the same assembly or both.
Example:Protected Friend demoString As String
It can be used only at class level but not at level of Source File or Namespace or inside an Interface, Module, Structure or Procedure.
Ans: In VB MDI form is created by adding MDI Form to the project and adding child forms by setting MDICHILD property of the child form.
In .NET there is no MDI form, any form can be made a MDI parent by setting IsMdiContainer property to TRUE.
Ans: When private assembly is installed in Global Assembly Cache, it is called as Shared Assembly. It does not create any physical copy and when the Assembly is installed in GAC, it can be referred to any .NET application.
Ans: By using the params keyword, a method parameter can be specified which takes a variable number of arguments or even no argument.
Ans: The CAS security policy revolves around two key concepts - code groups and permissions. Each .NET assembly is a member of a particular code group, and each code group is granted the permissions specified in a named permission set
Ans: Every Assembly contains an Assembly Manifest. It consists of the following:
1. The Assembly’s Identity (Name and Version)
2. File Table describing all other files that make up the assembly.
3. Assembly Reference List that contains information about External Dependencies.
4. Global Objects
Ans: The .NET Framework garbage collection methods are as follows:
1. Dispose
2. Finalize
Related Interview Questions...
ASP.Net Web API Essentials using C# Interview Questions
.Net Interview Questions and Answers
ASP.NET MVC Interview Questions and Answers
ASP.NET Interview Questions and Answers For Experienced
ASP.NET Interview Questions and Answers