KyaPoocha.com

Huge Collection of Interview Questions


Archive for April, 2007

What is the difference in passing values ByRef or ByVal to a procedure? 

ByRef -pass the address (for string -address of address of first byte) BY REF IS VERY USEFULL When the contents itself are being modified, when there is large data.... Read more »

What is the difference between ANSI and UNICODE strings when passed as arguments to a DLL? 

ANSI - one byte for a char UNICODE - two bytes per char - works only on NT  Read more »

What is the difference between a Property Let and Property Set procedure? 

Let - for simple variable Set - for object  Read more »

How would you declare and raise custom events in a class? 

a) Public Event OnVarChange(); b) RaiseEvent OnVarChange[(arg1, arg2, … , argn)]  Read more »

Describe and In Process vs. Out of Process component. Which is faster? 

An in-process component is implemented as a DLL, and runs in the same process space as its client app, enabling the most efficient communication between client and... Read more »

What is the benefit of wrapping database calls into MTS transactions? 

Aborting the transaction will undo and changes that occur within that transaction. This removes the possibility of stranded, or partial data.  Read more »

What two methods are called from the ObjectContext object to inform MTS that the transaction was successful or unsuccessful? 

SetComplete and SetAbort.  Read more »

List the ADO objects? 

Connection - Connects to a data source; contains the Errors collection Command - Executes commands to the data source. The only object that can accept parameters... Read more »

Name the different compatibility types when creating a COM component. 

No Compatibility - New GUID (Globally Unique Identifier) created, references from other components will not work Project Compatibility - Default for a new component Binary... Read more »

Name the four different cursor and locking types in ADO and describe them briefly ? 

CURSORS:: The cursor types are listed from least to most resource intensive. Forward Only - Fastest, can only move forward in recordset Static - Can move to any... Read more »

How to set a shortcut key for label? 

object.KeyLabel(keycode) [= string] You would probably create the menu item as follows: .Add “keyFile”, , , “E&xit”, , vbAltMask + vbCtrlMask,... Read more »

What are binary and project compatibility? 

Visual Basic’s Version Compatibility feature is a way of enhancing your components while maintaining backward compatibility with programs that were compiled using... Read more »

What is a Type Library and what is it’s purpose ? 

The type library may represent another Visual Basic project, or any other executable component that exposes a type library. Visual Basic creates type library information... Read more »

What is the tool used to configure the port range and protocols for DCOM communications? 

DCOMCONFIG.EXE  Read more »

How to register a component? 

Compiling the component, running REGSVR32 MyDLL.dll What is Database Connection pooling (relative to MTS) This allows MTS to reuse database connections. Database... Read more »

Page 6 of 16« First...«45678»...Last »