OpenText Most Frequently Asked Latest VB.NET Interview Questions Answers
What Is Shadowing?
When global and local varible in the same name.the local varibale in a mehod or function which use to override the global is called the shadowing.ie the Global varible is being shadowed by the local varible.
What Is An Abstract Class?
It is a class which contains at least one abstract method(A method without any implementation). Other methods can have implementations. This class can not be instantiated. It can always become a base class for other classes.
What Is The Difference Between Friend And Protected Friend?
Protected variable will be accessed in inherited class, but instance variable of class cant access protected variable.While friend variable will be accessed in inherited class as well as instance variable of class across the project.Where we need both functionality we are using protected friend scope.
[Protected --> Accessible ONLY by
1.Derived classes
2.Within the same class
Friend --> Accessible ONLY by
1.Derived classes
2.Classes in the same assembly
3.Within the same class
Protected Friend --> Accessible ONLY by
1.Derived classes
2.Classes in the same assembly
3.Within the same class]
In Order To Get Assembly Info Whcih Namespace We Should Import?
system.reflection.
Columnmapping Belongs To Which Namespaces?
System.Data.Common.
Do Event Have Return Type?
No. events do not have return type.
What Do You Mean By .net Framework
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).]
Is There Any Easy Way To Convert Vb6 Programs To Vb.net?
Just Open The Vb Project in Visual Studio.Net(File---> Open).
What Is The Common Language Runtime?
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
Please List Some Final Year Projects That Can Be Done Using Vb.net In The Application Level.
You can go for internet control of robot.
1. use chips:- at89c51 microcontroller, l293d motor driver n max232 converter (for robot)
2. using vb.net, develop the gui n use winsock programming for sending photos on internet.
3. use mscomm programming in .net to move the robot in a wired connection with the comp.
4. u can also use Enbedded C for microcontroller programming in place of assembly.use keil compiler for that n its available for free on internet.
5. attach a cam to robot, move it n transfer the photos captured to the client over internet.
How Can We Get The Contents Information That Are Displayed In A Web
browser control in vb.net.
Suppose If We Display The "c:\" Or "d:\" Of The Computer In A Web Browser And We Want To Get Any Folder Details But Not Ny Rigth Clicking The Folder. How To Do That Plz Help
I think you want the openfiledialog, unless your saving, then savefiledialog. Add one to your project. the simplest usage allowing you to use in any fashion would be
Dim OPEN as New Openfiledialog
open.showdialog()
then when you hit open on the dialog, you can pass that information such as
Dim a as string
a = open.filename()
a will then = D:/Filename.smt, or whatever its real directory is Ofcourse there more recomended approaches to this method, but that should get you somewhere.
What Is The Base Class Of .net?
System.Object is the base class of .NET
It Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate superclass of all classes in the .NET Framework; it is the root of the type hierarchy.
Whats The Difference Bt. .dll Extension And .exe Extension Files?
DLL : It is an inprocess server and runs in the same memory space as client application. Problem with dll is if any error comes in dll, whole application gets crashed.
Exe : It is an out of process server and rus as independent application in seperate memory. If error comes in exe, it does not affact the client application.
How To Send Xml File On Server Using Http Protocol?
Through SOAP Protocol.
How A Rotate A Control (rotation Like Shapes Are Rotated In Ms Powerpoint ) In Vb.net?
we can use adrotator control to use like powerpoint presentation.
How Can I Extract The Formated Word(bold,italic,underline,font,color Etc) From The Msword File.?
using CommonDialog class
eg
the code to invoke the default font dialog box by using the FontDialog control is given below
private sub displayfont_click(byval sender as system.object, byval e as system.eventargs) handles displayfont .click fontdialog. showDialog()
textbox1.font=fontdialog1.font
end sub
the code to invoke the default font dialog box by instantiating the fontdialog class is
dim fdialog as new fontdialog()
private sub displayfont_click(byval sender as system.object,byval e as system.eventargs) handles displayfont. click fdialog. showDialog()
textbox1.font=fontdialog1.font
end sub
Differences Between Vb.net And C#, Related To Oops Concepts?
1. C# uses Must not Inherit, VB.Net uses sealed class
2. C# uses Internal, VB.Net uses Friend
3. VB.Net uses with events and end events
4. C# uses abstract and VB.Net uses Must Inherit
Can U Able To Get The Xml Document In Crystal Report If Yes How Its Possible?
Yes. You have to convert XML to dataset.
What Is Different Between Web.config And Machine.config And Where It Will Be ?
The ASP.NET Web.config file is used to define the configuration settings for an ASP.NET application. ASP.NET and the .NET Framework use .config files to define all configuration options. The .config files, including the ASP.NET Web.config file, are XML files. The ASP.NET application configuration settings can be changed by creating a file called Web.config and saving it in the root folder of the application.This is how the minimal Web.config file should look like
<!--?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
</system.web>
</configuration>
The first line of the Web.config file is the same as the first line for any .config file and specifies that this is an XML document with utf-8 character encoding type.
There are 2 important characteristics of the Web.config file. The first one is that if you change your Web.config file, you don?t need to re-compile your ASP.NET application.
The second one is that the Web.config file cannot be viewed in directly in a browser.
Server-wide configuration settings for the .NET Framework are defined in a file called Machine.config. The settings in the Machine.config file can be changed and those settings affect all .NET applications on the server.what if the Machine.config file defines different settings than the ones defined in your Web.config file? The settings in the Web.config file override the settings in the Machine.config file.
[A web.config file is used to configure one asp .net web application. Each Asp.net application has a web.config file. A Machine.config file is used to configure the applications in a particular machine. Configuration done in machine.config file is affected on any application that runs on a particular machine.]
How Is Vb.net Different From Vb6?
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.
What Is Shadowing?
When global and local varible in the same name.the local varibale in a mehod or function which use to override the global is called the shadowing.ie the Global varible is being shadowed by the local varible.
What Is An Abstract Class?
It is a class which contains at least one abstract method(A method without any implementation). Other methods can have implementations. This class can not be instantiated. It can always become a base class for other classes.
What Is The Difference Between Friend And Protected Friend?
Protected variable will be accessed in inherited class, but instance variable of class cant access protected variable.While friend variable will be accessed in inherited class as well as instance variable of class across the project.Where we need both functionality we are using protected friend scope.
[Protected --> Accessible ONLY by
1.Derived classes
2.Within the same class
Friend --> Accessible ONLY by
1.Derived classes
2.Classes in the same assembly
3.Within the same class
Protected Friend --> Accessible ONLY by
1.Derived classes
2.Classes in the same assembly
3.Within the same class]
In Order To Get Assembly Info Whcih Namespace We Should Import?
system.reflection.
Columnmapping Belongs To Which Namespaces?
System.Data.Common.
No. events do not have return type.
OpenText Most Frequently Asked Latest VB.NET Interview Questions Answers |
What Do You Mean By .net Framework
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).]
Is There Any Easy Way To Convert Vb6 Programs To Vb.net?
Just Open The Vb Project in Visual Studio.Net(File---> Open).
What Is The Common Language Runtime?
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
Please List Some Final Year Projects That Can Be Done Using Vb.net In The Application Level.
You can go for internet control of robot.
1. use chips:- at89c51 microcontroller, l293d motor driver n max232 converter (for robot)
2. using vb.net, develop the gui n use winsock programming for sending photos on internet.
3. use mscomm programming in .net to move the robot in a wired connection with the comp.
4. u can also use Enbedded C for microcontroller programming in place of assembly.use keil compiler for that n its available for free on internet.
5. attach a cam to robot, move it n transfer the photos captured to the client over internet.
How Can We Get The Contents Information That Are Displayed In A Web
browser control in vb.net.
Suppose If We Display The "c:\" Or "d:\" Of The Computer In A Web Browser And We Want To Get Any Folder Details But Not Ny Rigth Clicking The Folder. How To Do That Plz Help
I think you want the openfiledialog, unless your saving, then savefiledialog. Add one to your project. the simplest usage allowing you to use in any fashion would be
Dim OPEN as New Openfiledialog
open.showdialog()
then when you hit open on the dialog, you can pass that information such as
Dim a as string
a = open.filename()
a will then = D:/Filename.smt, or whatever its real directory is Ofcourse there more recomended approaches to this method, but that should get you somewhere.
What Is The Base Class Of .net?
System.Object is the base class of .NET
It Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate superclass of all classes in the .NET Framework; it is the root of the type hierarchy.
Whats The Difference Bt. .dll Extension And .exe Extension Files?
DLL : It is an inprocess server and runs in the same memory space as client application. Problem with dll is if any error comes in dll, whole application gets crashed.
Exe : It is an out of process server and rus as independent application in seperate memory. If error comes in exe, it does not affact the client application.
How To Send Xml File On Server Using Http Protocol?
Through SOAP Protocol.
How A Rotate A Control (rotation Like Shapes Are Rotated In Ms Powerpoint ) In Vb.net?
we can use adrotator control to use like powerpoint presentation.
How Can I Extract The Formated Word(bold,italic,underline,font,color Etc) From The Msword File.?
using CommonDialog class
eg
the code to invoke the default font dialog box by using the FontDialog control is given below
private sub displayfont_click(byval sender as system.object, byval e as system.eventargs) handles displayfont .click fontdialog. showDialog()
textbox1.font=fontdialog1.font
end sub
the code to invoke the default font dialog box by instantiating the fontdialog class is
dim fdialog as new fontdialog()
private sub displayfont_click(byval sender as system.object,byval e as system.eventargs) handles displayfont. click fdialog. showDialog()
textbox1.font=fontdialog1.font
end sub
Differences Between Vb.net And C#, Related To Oops Concepts?
1. C# uses Must not Inherit, VB.Net uses sealed class
2. C# uses Internal, VB.Net uses Friend
3. VB.Net uses with events and end events
4. C# uses abstract and VB.Net uses Must Inherit
Can U Able To Get The Xml Document In Crystal Report If Yes How Its Possible?
Yes. You have to convert XML to dataset.
What Is Different Between Web.config And Machine.config And Where It Will Be ?
The ASP.NET Web.config file is used to define the configuration settings for an ASP.NET application. ASP.NET and the .NET Framework use .config files to define all configuration options. The .config files, including the ASP.NET Web.config file, are XML files. The ASP.NET application configuration settings can be changed by creating a file called Web.config and saving it in the root folder of the application.This is how the minimal Web.config file should look like
<!--?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
</system.web>
</configuration>
The first line of the Web.config file is the same as the first line for any .config file and specifies that this is an XML document with utf-8 character encoding type.
There are 2 important characteristics of the Web.config file. The first one is that if you change your Web.config file, you don?t need to re-compile your ASP.NET application.
The second one is that the Web.config file cannot be viewed in directly in a browser.
Server-wide configuration settings for the .NET Framework are defined in a file called Machine.config. The settings in the Machine.config file can be changed and those settings affect all .NET applications on the server.what if the Machine.config file defines different settings than the ones defined in your Web.config file? The settings in the Web.config file override the settings in the Machine.config file.
[A web.config file is used to configure one asp .net web application. Each Asp.net application has a web.config file. A Machine.config file is used to configure the applications in a particular machine. Configuration done in machine.config file is affected on any application that runs on a particular machine.]
How Is Vb.net Different From Vb6?
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.
Post a Comment