TIBCO Software VB.NET Interview Questions Answers

TIBCO Software Most Frequently Asked Latest VB.NET Interview Questions Answers

What Is Sta In .net?

single-threaded apartments (the apartment model process) offers a message-based paradigm for dealing with multiple objects running concurrently. It enables you to write more efficient code by allowing a thread, while it waits for some time-consuming operation to complete, to allow another thread to be executed.

Each thread in a process that is initialized as an apartment model process, and that retrieves and dispatches window messages, is a single-threaded apartment thread. Each thread lives within its own apartment. Within an apartment, interface pointers can be passed without marshaling, and therefore, all objects in one single-threaded apartment thread communicate directly.

A logical grouping of related objects that all execute on the same thread, and therefore must have synchronous execution, could live on the same single-threaded apartment thread. However, an apartment model object cannot reside on more than one thread. Calls to objects in other processes must be made within the context of the owning process, so distributed COM switches threads for you automatically when you call on a proxy.

How Would You Implement Inheritance Using Vb.net ?

Using VB.NET we can create a class that provides basic functionality so that other classes can inherit its members. VB.NET provides the 'Inherits' keyword to implement inheritance. By using the keyword 'Inherits' we can inherit the characteristics of a class into another class.

What Is Assembly In .net And What Do You Mean By Protected Class Always Present In The Same Assembly?

Assemblies are building blocks of framework. There are mainly two types of assemblies
a) Private Assembly
b) Shared Assembly
TIBCO Software Most Frequently Asked Latest VB.NET Interview Questions Answers
TIBCO Software Most Frequently Asked Latest VB.NET Interview Questions Answers

What Is The Diff Between Vb Mdi Form And .net Mdi Form?

In VB MDI form is created by adding MDI Form to the project and adding child forms by setting MDICHILD property of the child form. In .NET there is no MDI form, any form can be made a MDI parent by setting IsMdiContainer property to TRUE.
Furthermore, there are changes in the properties, methods and basic behavior of the MDI Forms, like ability to set Background Color is not available in .NET, ability to add controls to MDI form(although they don't behave properly), ActiveForm to ActiveMdiChild, Arrange method to LayoutMdi, etc.

What Is The Advantage Of Option Strict On?

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.

What Do You Mean By Serialization And Deserialization And It's Use.

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.

What Is Misl Code?

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.

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

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.

What Is The Exact Defination Of "object"?

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

How Do You Use Two Datareaders At The Same Time In A Vb.net Windows Application ?

for example
while(datareader1.read())
while(datareader2.read())
end while
end while
this is not allowed even though both datareaders have two different sets of data.

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

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

What Is The Purpose Of Using Executenonquery?

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.

What Is The Use Of Console Application?

Console Applications are command-line oriented applications that allow us to read characters from the console, write characters to the console and are executed in the DOS version. Console Applications are written in code and are supported by the System.

How Vb Implements The Disconnected Architecture As Like Vb.net?

In VB to implement a disconnected recordset, after you have filled the recordset with the data, set its active connection property to “Nothing”. That breaks the connection to the database. You can locally also save the data of the recordset by using its Save function.

What Is The Difference Between .dll Extension And .exe Extension Files?

The main difference between .dll and .exe is
.dll is the in process component where it take up the client’s memory space to run. So the communication between the application and component (dll) is very fast.
.EXE is the Out of process component. It uses its own memory (not application memory) to run the component. The communication between the application and component is slow when compared to .dll

What Is Different Between Web.config And Machine.config And Where It Will Be?

The settings made in the web. config file are applied to that particular web application only whereas the settings of machine.config file are applied to the whole asp.net application.

Differences Between Vb.net And C#, Related To Oops Concepts?

VB.NET is a windows application where as C# is a console.

What Is Non_deterministic Finalization?

The Finalize method is actually executed by the runtime on a special thread allocated by the Garbage Collector (GC).The Finalize method is executed whenever the runtime feels it is appropriate, such as when a low-resource condition occurs and this situation is often referred to as non-deterministic finalization.

Post a Comment

Previous Post Next Post