• +91 9723535972
  • info@interviewmaterial.com

VB.Net Interview Questions and Answers

VB.Net Interview Questions and Answers

Question - 141 : - What Is The Base Class Of .net?

Answer - 141 : -

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.

Question - 142 : - 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

Answer - 142 : -

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.

Question - 143 : - How Can We Get The Contents Information That Are Displayed In A Web

Answer - 143 : -

browser control in vb.net.

Question - 144 : - What Is The Advantage Of Option Strict On?

Answer - 144 : -

Visual Basic allows conversions of many data types to other data types. Data loss can occur when the value of one data type is converted to a data type with less precision or smaller capacity. A run-time error occurs if such a narrowing conversion fails. Option Strict ensures compile-time notification of these narrowing conversions so they can be avoided.
In addition to disallowing implicit narrowing conversions, Option Strict generates an error for late binding. An object is late bound when it is assigned to a variable that is declared to be of type Object.
Because Option Strict On provides strong typing, prevents unintended type conversions with data loss, disallows late binding, and improves performance, its use is strongly recommended.

Question - 145 : - What Do You Mean By Serialization And Deserialization And It's Use.

Answer - 145 : -

Serilization: It is the process of maintaning object state in the form of a stream.
Deserilization: It is the process of reading the stream and construct the object.
Uses:(Remoting Concept)
1) making object state persistent
2) transmitting the object from one system to another system.

Question - 146 : - What Is Misl Code?

Answer - 146 : -

MSIL code is the Microsoft Intermediate Language. This is the code created by the CLR from the source code. This MSIL code is converted to machine/native code by JIT compiler. This machine code is actually the code which runs.

Question - 147 : - What Is The Difference Between A "jagged Array" And Multidimensional Array" ?can Anyone Show Me It Practically ?

Answer - 147 : -

multidimentional array has same size in all dimentions but jagged is the type of multidimentional array which has different size for its dimensions.

int array[3][3][3]; //multidimentional array.
int array[3][1][6]; //jagged array.

Question - 148 : - What Is The Exact Defination Of "object"?

Answer - 148 : -

A real world entity which has some specific attributes related to its characteristics and operations or methods associated with its attributes.

Question - 149 : - What Are The Difference Between Dispose(), Close(), Exit(), End()? When Do We Use Them?

Answer - 149 : -

dispose(): should release all the resources that it owns.
close():closing the application
exit():Exiting from the loop
end():stops the execution of the page/function/procedure

Question - 150 : - What Is The Purpose Of Using Executenonquery?

Answer - 150 : -

System.Data.OleDB
It contains the objects that we use to connect to a data source via an OleDB provider , such as OleDb
Connection, OleDBCOmmand System.Data.SqlClient
It contains objects that we use to connect to a data source via Tabular data stream interface provided by Microsoft Sql Server. This can be generally used to provide better performance because it removes some of the intermediate layers required by the OleDB provider.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners