VB.Net Interview Questions and Answers
Question - 111 : - What Are The Similarities Between Class And Structure?
Answer - 111 : -
-> Both can have constructors, methods, properties , fields, constants , enumerations, events and event
handlers.
-> Structure and class can implement interface.
-> Both of them can have constructor without parameter and with parameter.
-> Both can have delegates and events.
[class is a collection of methods functions and properties enumerators and fields.
structure can be defined as a tool for handling a group of logically related data item.
the main difference is class is a referance type.structure is a reference value type.]
Question - 112 : - Do Event Have Return Type?
Answer - 112 : -
No. events do not have return type.
Question - 113 : - What Do You Mean By .net Framework
Answer - 113 : -
It is a collection of classes and services.It exists as a layer between.NET applications and underlying operating system.i.e., it encapsulates the basic functionality that was earlier built into programming languages such as debugging and security services.
[.net framework is a collection of services & classes.it exists as a layer b/w .net applications 7 the underlying operating system.
.net framework consists of web forms,window forms & console applications that pertain to the presentation layer of the aplication.
.net framework consists of two other components,the .net framework base classes & common language runtime(CLR).]
Question - 114 : - Is There Any Easy Way To Convert Vb6 Programs To Vb.net?
Answer - 114 : -
Just Open The Vb Project in Visual Studio.Net(File---> Open).
Question - 115 : - What Is The Common Language Runtime?
Answer - 115 : -
CLR means commaon language runtime for the dot net frame work.it is the frame work layer that resides above the operating system and handels/ manages the execution of the .net applications.our .net programs don't directly communicate with the operating system but through CLR.
OUT .NET APPLICATION--->>CLR--->WINDOWS OS
Question - 116 : - How Is Vb.net Different From Vb6?
Answer - 116 : -
- VB6 was a scripting language while VB.NET is a Programming language.
- VB6 was supported Unstructured error handling by using On Error Gotos tatement. VB.NET supports structured exceptional by using Try…Catch…Finally to handle exceptions at runtime.
- VB.NET is completely supports object oriented features.but VB6 wont support.
- VB6 used ADO as Data access technology and record-sets to implement data access applications. Also here data transfer in the form of binary format.VB.NET uses ADO.NET and datasets to build data access applications. The ADO.NET also supports the disconnected data access. Here the data transfer in the form of xml format. So here their is faster data transfer.
- Multiple versions are supported with VB.NETbut withVB6its not supported.
- multithreading is supported with VB.NET, but not with VB6.
Question - 117 : - What Are Fixed Memory Leaks And Threads Locking Problems.
Answer - 117 : -
Memory leak is a bug in the program which uses the memory continuously without releasing it until the system crash.Thread locking problem is nothing but a deadlock situation in case of synchronous process when two consecutive threads get lock on a common resource and waiting for each other to release that. This happens usually in case when the semaphores or monitors are not used.
Question - 118 : - How To Call A List Box On The Text If Some One Send Me The Code For It
Answer - 118 : -
i understood the ? like this what to do if we need to transfer the listbox items to the text if i am correct then my answer to this is double click on the listbox so that the eventof the listbox is displayed in the code editori.e
private sub listbox1_selectedindexchanged......
textbox1.text=listbox1.selecteditem.
Question - 119 : - What Is The Difference B/w Readonly Variable And Constant Variable?
Answer - 119 : -
variable used to store the data
Read only variable:-
Read only variable means read only but not allow to write
constant:
constant variable specify the constant value.
Question - 120 : - What Is The Dif B/w Panel And Groupbox.
Answer - 120 : -
Both panel and group box acts like a container to other controls they help us a lot in some applications where we want a group of controls or objects should be disabled or enabled when a specific task is performedthe main difference is group box has a hording where u can place a text of ure own whereas a panel is just like a frame what we used in VB but has a scrollbar(hs,vs)