VB.Net interview Questions and answers for Experienced
Question.1 What would you do to remove Microsoft visual basic name space?
Answer: .NET has many new features and application supportive tools. To remove Microsoft visual basic name space all you have to do is to
1) Remove the import manually every time you start the project.
2) Creating a template which does not contain Microsoft Visual Basic namespace.
3) About new features and changes names you can refer to MSDN.
Question.2 Name some of the features of C# which are not present in VB.NET?
Answer: Some of the features which are not present in VB are as follows they are: –
1) It supports unsafe code blocks for improved performance.
2) Partial interfaces and anonymous methods.
3) Multi line comments and static classes. Etc [sociallocker]
Question.3 Name a feature which is common to all .NET languages?
Answer: 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.
Question.4 Name and explain some of the exclusive features which are present in VB?
Answer: 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.
Question.5 Explain about Visual basic.NET culture?
Answer: 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.
Question.6 Write the role of New keyword ?
Answer: New is used to initialize a new object. We sets a variable to any dattype with help of New keyword .The New keyword gives a value to the variable.We can also uses new keyword to initialize an object variable.
Example:- dim obj as new SqlDataAdapter.
Question.7 What is branching logic control in vb.net ?
Answer: Function and subroutines are the answer.The diffrence in two of them is function send information back from where it is called means function can return a value but subroutines can not do this.
Question.8 What do u mean by Redim in VB.NET ?
Answer: In vb.net we use Redim and erase to manipulate Array. Once we declare an array the size set to array its makes limited to that range but with the help of redim we used to change the array size.
we can also used preserve to save these values.
Redim Preserve arr(6)
Question.9 What is DataType conversion in VB.NET ?
Answer: Convert one variable type to another one is called datatype conversion we can also caleed this casting in VB.NET some automatically conversion is also there.
Cbool CByte CChar Cdate CDec CDbl CInt CLng CObj CShort CSng CStr CType Asc.
Question.10 Can you define what is Jagged Array in VB.NET ?
Answer: Jagged array is multidimensional array.If jagged array is two dimensinal it also contain a table where each row can have a different number of columns.
A jagged array is really an array of arrays. To create a jagged array, you declare the array of arrays with multiple sets of parentheses or brackets and indicate the size of the jagged array in the first set of brackets.
Question.11 Compare C# and Visual basic.NET?
Answer: .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.
Question.12 Explain about the performance of Visual basic?
Answer: 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.
Question.13 What are the various open source tool available for VB.NET?
Answer: 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.
Question.14 Describe about Visual basic.NET?
Answer: 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.
Question.15 Explain and brief about rapid application development tool?
Answer: 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.
Question.16 Explain about .NET?
Answer: .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.
Question.17 Explain about visual basic?
Answer: 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.
Question.18 What is a delegate, why should you use it and how do you call it ?
Answer: 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.
Question.19 Where do you add an event handler?
Answer: It’s the Attributesproperty, the Add function inside that property.
visit for : VB NET e-learning