VB .Net

  Home  Microsoft .Net Technologies  VB .Net


“VB .Net Interview Questions and Answers guide to get preparation of VB .Net Jobs Interview or Learn the basic and advance concepts of VB .NET Programming by our VB .Net Interview Questions and Answers Guide.”



69 VB .Net Questions And Answers

46⟩ What is a delegate, why should you use it and how do you call it ?

A delegate is a reference type that refers to a Shared method of a type or to an instance method of an object. Delegate is like a function pointer in C and C++. Pointers are used to store the address of a thing. Delegate lets some other code call your function without needing to know where your function is actually located. All events in .NET actually use delegates in the background to wire up events. Events are really just a modified form of a delegate.

It should give you an idea of some different areas in which delegates may be appropriate:

1.They enable callback functionality in multi-tier applications as demonstrated in the examples above.

2.The CacheItemRemoveCallback delegate can be used in ASP.NET to keep cached information up to date. When the cached information is removed for any reason, the associated callback is exercised and could contain a reload of the cached information.

3. Use delegates to facilitate asynchronous processing for methods that do not offer asynchronous behavior.

4.Events use delegates so clients can give the application events to call when the event is fired. Exposing custom events within your applications requires the use of delegates.

 143 views

47⟩ So how do you retrieve the customized properties of a .NET application from XML .config file? Can you automate this process?

Initialize an instance of AppSettingsReader class. Call the GetValue method of AppSettingsReader class, passing in the name of the property and the type expected. Assign the result to the appropriate variable. In Visual Studio yes, use Dynamic Properties for automatic .config creation, storage and retrieval.

 158 views

48⟩ How does the XmlSerializer work?

XmlSerializer in the .NET Framework is a great tool to convert Xml into runtime objects and vice versa

If you define integer variable and a object variable and a structure then how those will be plotted in memory.

Integer , structure - System.ValueType -- Allocated memory on stack , infact integer is primitive type recognized and allocated memory by compiler itself .

Infact , System.Int32 definition is as follows :

[C#]

[Serializable]

public struct Int32 : IComparable, IFormattable, IConvertible

So , it's a struct by definition , which is the same case with various other value types .

Object - Base class , that is by default reference type , so at runtime JIT compiler allocates memory on the "Heap" Data structure .

Reference types are defined as class , derived directly or indirectly by System.ReferenceType

 141 views

49⟩ Explain about visual basic?

Visual basic is associated with the IDE of Microsoft. It is basically useful to implement RAD of GUI. Creation of Active X scripts are very easy and efficient through VB. Windows API can also be used to create application on windows desktop and its applications. This was primarily designed to create applications for windows platform.

 139 views

50⟩ Explain about .NET?

.NET is a Microsoft Framework and a software component. .NET has a large library of pre-coded solutions which provided developer significant help in developing applications with solutions already present. It offers reliable security and cross platform compatibility.

 143 views

51⟩ Name some of the features present in VB 2005?

Some of the features present in VB 2005 are as follows: -

► Edit and continue: - It allows developers to modify and execute applications almost simultaneously.

► Namespace: - This provides access to various parts of the .NET framework and it also dynamically generates classes.

► Data source binding function is very useful for client server development.

 136 views

52⟩ Explain and brief about rapid application development tool?

Rapid action development tool describes about the software development process. This tool gives flexibility in iterative development and prototype deployment. It enhances the speed of application development. It is also used for application maintenance.

 151 views

53⟩ Describe about Visual basic.NET?

This is used in conjunction with Microsoft .NET platform and is a successor to visual basic sixth version. Visual basic is used in conjunction with.NET Framework. This tool has a serious defect it is not compatible with Microsoft visual basic sixth version. It has a huge library which assists programmers.

 142 views

54⟩ What are the various open source tool available for VB.NET?

When compared with the rapid development of open source tools for other languages from Microsoft (C#, etc) we can say that development of tools for VB has been slow. Mono development platform is one which is implementing VB libraries and is working on a compiler.

 134 views

55⟩ Explain about the performance of Visual basic?

Visual basic 5 and 6 are efficient in coding the code to native or P-code depending upon the programmer. Portability is a major addition to the performance of VB.NET and the code is also small. Additional layer is provided which interprets the code and this can be avoided by using special algorithms and native code programming.

 138 views

56⟩ Compare C# and Visual basic.NET?

.NET Frame work includes two languages which are language to IL compilers and in this C# and VB.NET are provided. The importance and flexibility of these as better programming languages is still questionable. Visual basic has been updated and revised to make it object oriented whereas C# has concepts from many languages such as Delphi, Java, etc and syntax from C and Java.

 147 views

57⟩ Explain about Visual basic.NET culture?

VB was always a RAD tool and it was always user friendly for any type of user whether professional or not. It also provided many users with shortcuts and features which made this language popular among many users. It had its share of debugging and maintenance issues of course.

 145 views

58⟩ Name and explain some of the exclusive features which are present in VB?

Some of the features which are exclusive to VB are as follows: -

1) Name space can be hidden which can be disabled.

2) Certain project files can be hidden and a user can show them if he intends to do.

3) Lots and lots of shortcuts are present which ease the development of programs.

4) Using the AddressOf myObject function a delegate can be made.

 135 views

59⟩ Name a feature which is common to all .NET languages?

There is only one feature which is common to all languages and that is Garbage collection or GC. This feature is automated which relieves developers of much work. This garbage is disposed only when there is need of memory or stress for memory. GC feature halts the application for few seconds before restarting it.

 136 views