Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

What Are Some Benefits Of Using Mts?

Answer»

Database POOLING, TRANSACTIONAL operations, Deployment, Security, REMOTE EXECUTION.

Database Pooling, Transactional operations, Deployment, Security, Remote Execution.

2.

Under The Ado Command Object, What Collection Is Responsible For Input To Stored Procedures?

Answer»

The PARAMETERS COLLECTION.

The Parameters collection.

3.

What Is The Dll Required For Running The Vb?

Answer»

Vbrun300.dll.

Vbrun300.dll.

4.

Which Controls Cannot Be Placed In Mdi?

Answer»

The CONTROLS which do not have ALIGN PROPERTY can't be placed on MDI Form.

The Controls which do not have Align property can't be placed on MDI Form.

5.

What Is The Tool Used To Configure The Port Range And Protocols For Dcom Communications?

Answer»

DCOMCONFIG.EXE.

DCOMCONFIG.EXE.

6.

What Are The Style Properties Of List Box?

Answer»

SIMPLE SINGLE SELECT , EXTENDED, MULTIPLE Select.

Simple Single Select , Extended, Multiple Select.

7.

What Is Mapi ?

Answer»

MESSAGING APPLICATION PROGRAMMING INTERFACE.

Messaging Application programming Interface.

8.

What Are The Type Of Validation Available In Vb?

Answer»

FIELD, FORM.

Field, Form.

9.

What Is The Difference Between Property Get, Set And Let?

Answer»

Set VALUE is assigned to ACTIVEX Object from the FORM. Let Value is retried to ActiveX Object from the form. Get- Assigns the value of an EXPRESSION to a VARIABLE or property.

Set Value is assigned to ActiveX Object from the form. Let Value is retried to ActiveX Object from the form. Get- Assigns the value of an expression to a variable or property.

10.

What Are The Scopes Of The Class?

Answer»

PUBLIC, PRIVATE, FRIEND.

Public, private, Friend.

11.

What Are The Different Types Of Dialog Box?

Answer»

PREDEFINED, CUSTOM, USER DEFINED.

Predefined, Custom, User Defined.

12.

Can We Create Cgi Scripts In Vb?

Answer»

Yes.

Yes.

13.

What Are The Different Types Of Error?

Answer»

SYNTAX ERRORS, RUNTIME , LOGIC.

Syntax Errors, Runtime , Logic.

14.

What Is The Size Of The Variant Data Type?

Answer»

The Variant DATA TYPE has a numeric storage size of 16 bytes and can CONTAIN data up to the range of a DECIMAL, or a character storage size of 22 bytes (plus string length),and can store any character text.

The Variant data type has a numeric storage size of 16 bytes and can contain data up to the range of a Decimal, or a character storage size of 22 bytes (plus string length),and can store any character text.

15.

What Is View Port?

Answer»

The AREA under which the container provides the VIEW of the ACTIVEX DOCUMENT is known as a view port.

The area under which the container provides the view of the ActiveX Document is known as a view port.

16.

Which Are The 2 Macro Languages And Which Do You Use ?

Answer»

XLM (USED in Excel 97 or before) and VBA(used for 2000 and after). Obviously, VBA is in use these DAYS.

XLM (used in Excel 97 or before) and VBA(used for 2000 and after). Obviously, VBA is in use these days.

17.

What Is The Difference Between Usedrange And Currentregion Properties ?

Answer»
  • The current region is a range bounded by any combination of blank ROWS and blank columns.
  • This property is useful for many operations that automatically expand the SELECTION to include the entire current region, such as the AutoFormat method. This property cannot be used on a protected worksheet.
  • The UsedRange property is used to SELECT the range of used cells on a worksheet. It returns a Range object that represents the used range on the specified worksheet.
  • Every non-blank cell got its CurrentRegion and its keyboard SHORTCUT is Ctrl+Shift+Spacebar.
  • There can be many current regions but there is only one used range in a worksheet.

18.

What Do You Know About The Interpretation Features Of Vba?

Answer»

VBA is LICENSED to Microsoft and this compatible with and only Microsoft products. CODE written is compiled by an intermediate language called P-code and this is STORED in hosting applications such as Excel, WORD and Access. The intermediate code is interpreted by a virtual machine. This code and intermediate language is the EXCLUSIVE right of Microsoft.

VBA is licensed to Microsoft and this compatible with and only Microsoft products. Code written is compiled by an intermediate language called P-code and this is stored in hosting applications such as Excel, Word and Access. The intermediate code is interpreted by a virtual machine. This code and intermediate language is the exclusive right of Microsoft.

19.

What Are Excel Dependency Tree Limits?

Answer»

There are two limits to the NUMBER of dependencies that Excel versions PRIOR to Excel 2007 can TRACK before it MUST do full calculations instead of recalculations.

  • The number of different areas in a sheet that MAY have dependencies is limited to 65,536.
  • The number of cells that may depend on a single area is limited to 8K.

After the workbook has passed these limits, Excel no longer attempts to recalculate only changed cells. Instead, it recalculates all cells at each calculation.

There are two limits to the number of dependencies that Excel versions prior to Excel 2007 can track before it must do full calculations instead of recalculations.

After the workbook has passed these limits, Excel no longer attempts to recalculate only changed cells. Instead, it recalculates all cells at each calculation.

20.

How Do You Check The Calculation State ?

Answer»

using the Application.CalculationState PROPERTY which TELLS if calculation has completed ( xlDone ), is PENDING ( xlPending) , or is in process ( xlCalculating ).

using the Application.CalculationState property which tells if calculation has completed ( xlDone ), is pending ( xlPending) , or is in process ( xlCalculating ).

21.

What Is Excel Dependency Tree?

Answer»
  • DEPENDENCY trees are EXCEL way of minimizing the calculation by TRACKING what has changed since last calculation. It allows Excel to recalculate only:
  1. Formulae/Names that have changed.
  2. Formulae containing VOLATILE Functions.
  3. Formulae dependent on changed or volatile formulae or cells or names.
  • Excel determines dependencies by LOOKING at the cells referred to by each formula and by the argument list of each function.
  • Dependency trees are immediately updated whenever a formula is entered or changed.
  • To force the dependency trees to be rebuilt and all formulae calculation use CTRL+ALT+SHIFT+F9.

22.

Is It Possible To Apply 'application.volatile(false)' To A Volatile Public Function Like Index And Make It Not Volatile?

Answer»

Actually INDEX is not a volatile function, EVEN though some MicroSoft documentation SAYS it is. Anyway no its not POSSIBLE to apply Application.Volatile(FALSE) to a built-in Excel function except by duplicating what the built-in function does inside a UDF.

Actually INDEX is not a volatile function, even though some MicroSoft documentation says it is. Anyway no its not possible to apply Application.Volatile(False) to a built-in Excel function except by duplicating what the built-in function does inside a UDF.

23.

How Do You Make A Udf Volatile?

Answer»

By ADDING Application.Volatile STATEMENT to it. It must be the first LINE of your USER Defined Function.

By adding Application.Volatile statement to it. It must be the first line of your User Defined Function.

24.

What Is A Volatile Function?

Answer»

Volatile FUNCTIONS are a type of FUNCTION that will always recalculate. That means whenever EXCEL needs to calculate any part of the WORKSHEET, those CELLS containing volatile functions will also calculate.

Volatile functions are a type of function that will always recalculate. That means whenever Excel needs to calculate any part of the worksheet, those cells containing volatile functions will also calculate.

25.

What Is Type Library And Its Purpose?

Answer»

Type LIBRARIES are files that explicitly describe some or all of the contents of components. This includes information about the methods properties constants and other members exposed by the COMPONENT. Development tools such as Visual Basic make use of the information contained in the type library to help you as a developer access and use the component. In addition type libraries provide a convenient way to include a simple LEVEL of descriptive documentation for component members. You can use them through 'Tools --> References' in VBE.

Type libraries are files that explicitly describe some or all of the contents of components. This includes information about the methods properties constants and other members exposed by the component. Development tools such as Visual Basic make use of the information contained in the type library to help you as a developer access and use the component. In addition type libraries provide a convenient way to include a simple level of descriptive documentation for component members. You can use them through 'Tools --> References' in VBE.

26.

To Set The Command Button For Esc, Which Property Needs To Be Changed?

Answer»

Set Cancel property of BUTTON to TRUE on the FORM.

Set Cancel property of Button to True on the Form.

27.

Does Vba Supports Oop Principles?

Answer»

Yes because VBA is VB6.0 BASED which is an Object Based Programming LANGUAGE and is also known as 'Event Driven Programming' and it supports Polymorphism, Encapsulation and PARTIALLY Inheritance.

Yes because VBA is VB6.0 based which is an Object Based Programming Language and is also known as 'Event Driven Programming' and it supports Polymorphism, Encapsulation and partially Inheritance.

28.

What Is The Method For Returning More Than One Values From A Function In Vb?

Answer»

Any of the THREE methods can be USED:

  • Create a class with the properties you require to return and then return the OBJECT of the class from the FUNCTION.
  • Using ByRef for the values.
  • Return an ARRAY of the values.

Any of the three methods can be used:

29.

How To Set The Custom Paper Size In Excel Object Through Vb?

Answer»

Activesheet.PageSetup.PaperSize = xlPaperLetter (SIMILARLY xlPaperA4 or xlPaperLegal ETC.).

Activesheet.PageSetup.PaperSize = xlPaperLetter (Similarly xlPaperA4 or xlPaperLegal etc.).

30.

What Is Ado, Oledb & Odbc?

Answer»

ADO : ActiveX Data Objects is universal data access framework that ENCOMPASSES the functionality of DAO.
ODBC : Open Database Connectivity(ODBC) is a windows technology that lets a database client application CONNECT to a external database.
OLEDB : LOW level programming INTERFACE designed to access a wide VARIETY of data access Object Linking and Embedding (OLE).

ADO : ActiveX Data Objects is universal data access framework that encompasses the functionality of DAO.
ODBC : Open Database Connectivity(ODBC) is a windows technology that lets a database client application connect to a external database.
OLEDB : Low level programming interface designed to access a wide variety of data access Object Linking and Embedding (OLE).

31.

The Font Dialog Box Allows You To Select Different Fonts, Their Style, Their Size, And Some Other Special Effects. How Do You Bring Up This Font Dialog Box?

Answer»

Use Application.Dialogs(xlDialogFont).Show or Application.Dialogs(xlDialogFormatFont).Show to LOAD FONT DIALOG box from EXCEL VBA.

Use Application.Dialogs(xlDialogFont).Show or Application.Dialogs(xlDialogFormatFont).Show to load font dialog box from Excel VBA.

32.

How Will You Distribute A Workbook Such That It Can't Be Copied Using Macro Or Anything?

Answer»

We can CREATE a workbook which cannot be modified but cannot create a workbook which can't be COPIED.(It DEPENDS on SYSTEM security, it has nothing to do with EXCEL or VBA)

We can create a workbook which cannot be modified but cannot create a workbook which can't be copied.(It depends on system security, it has nothing to do with Excel or VBA)

33.

How Can You Increase The Number Of Columns In A Worksheet?

Answer»

No one can't. They're FIXED as 256(2^8) in EXCEL 2003 or before and 16384(2^14) in Excel 2007 & Excel 2010.

No one can't. They're fixed as 256(2^8) in Excel 2003 or before and 16384(2^14) in Excel 2007 & Excel 2010.

34.

How Can You Increase The Number Of Rows In A Worksheet?

Answer»

No one can't. They're FIXED as 65536(2^16) in Excel 2003 or before and 1048576(2^20) in Excel 2007 & Excel 2010.

No one can't. They're fixed as 65536(2^16) in Excel 2003 or before and 1048576(2^20) in Excel 2007 & Excel 2010.

35.

How Can You Add A Drop-down List To A Cell So The User Can Choose A Value From The List?

Answer»

USING 'Data VALIDATION'.

Using 'Data Validation'.

36.

Can You Lock Cells Such That Only Specific Users Can Modify Them?

Answer»

There is a option "Allow USERS to EDIT ranges" can be USED for this purpose.

There is a option "Allow users to edit ranges" can be used for this purpose.

37.

Draw Basic Excel Object Model?

Answer»

Application --> WORKBOOKS --> Worksheets --> Range / CHART.

Application --> Workbooks --> Worksheets --> Range / Chart.

38.

What Is The Difference B/w Functions And Subroutines?

Answer»

39.

Difference Between Activex And Form Controls.

Answer»
  • Forms controls can be used on worksheets and chart SHEETS. Forms controls can also be placed within embedded charts in Classic Excel (though not in Excel 2007). ACTIVEX controls can only be used on worksheets. ActiveX controls do not work in MacExcel.
  • The Forms controls aren’t very complicated, and they have been PART of Excel for longer (they were used in Excel 5/95’s dialog sheets) than the Controls Toolbox (Excel 97), so it STANDS to reason that they’d be more seamlessly integrated. Being newer, the ActiveX controls have richer formatting possibilities. Both can link to cells and ranges in the worksheet.

40.

Code To Find A Last Used Row In A Column Or Last Used Column Of A Row.

Answer»

Last ROW in a COLUMN can be find USING End(xlUp) and Last Column in a row can be find using End(xlToLeft). For e.g. Range("A1048576").End(xlUp).Row GIVES last USED row of Column A.

Last Row in a column can be find using End(xlUp) and Last Column in a row can be find using End(xlToLeft). For e.g. Range("A1048576").End(xlUp).Row gives last used row of Column A.

41.

Difference Between Activeworkbook And Thisworkbook.

Answer»

ThisWorkbook REFERS to the WORKBOOK where code is being written while ActiveWorkbook refers to the workbook which is in ACTIVE state with active WINDOW. In case of only one workbook OPEN, ActiveWorkbook is same as ThisWorkbook.

ThisWorkbook refers to the workbook where code is being written while ActiveWorkbook refers to the workbook which is in active state with active window. In case of only one workbook open, ActiveWorkbook is same as ThisWorkbook.

42.

What Are Various Data Type And Their Size?

Answer»
  •  The Boolean data TYPE has only two states, True and FALSE. These types of variables are stored as 16-bit (2 Byte) numbers, and are usually used for flags.
  •  The Byte data type is an 8-bit variable which can store value from 0 to 255.
  • The Double data type is a 64-bit floating point number used when high accuracy is needed.
  •  The Integer data type is a 16-bit number which can RANGE from -32768 to 32767. Integers should be used when you are working with values that can not contain fractional numbers. In case, you're working over 32767 rows use Long as data type.
  • The Long data type is a 32-bit number which can range from -2,147,483,648 to 2,147,483,647.
  •  The SINGLE data type is a 32-bit number ranging from -3.402823e38 to -1.401298e-45 for negative values and from 1.401298e-45 to 3.402823e38 for positive values. When you need fractional numbers within this range, this is the data type to use.
  • The String data type is usually used as a variable-length type of variable. A variable-length string can contain up to approximately 2 billion characters. Each character has a value ranging from 0 to 255 based on the ASCII character set.

43.

What Is The Meaning Of Option Explicit And Option Base?

Answer»

Option Explicit makes the declaration of Variables Mandatory while Option Base USED at MODULE level to declare the DEFAULT lower bound for array subscripts. For eg. Option Base 1 will make the array lower bound as 1 instead of 0.

Option Explicit makes the declaration of Variables Mandatory while Option Base used at module level to declare the default lower bound for array subscripts. For eg. Option Base 1 will make the array lower bound as 1 instead of 0.

44.

What Is The Difference Between Byval And Byref And Which Is Default ?

Answer»
  • ByRef: If you pass an argument by REFERENCE when calling a procedure the procedure access to the ACTUAL VARIABLE in MEMORY. As a result the variable's value can be changed by the procedure.
  • ByVal: If you pass an argument by value when calling a procedure the variable's value can be changed with in the procedure only outside the actual value of the variable is retained.
  • ByRef is default: Passing by reference is the default in VBA. If you do not explicitly specify to pass an argument by value VBA will pass it by reference.

45.

How Can We Dial A Phone Number?

Answer»

Shell command present in VBA can be used to start the dialer present in WINDOWS operating system. Phone number can be used to connect to your modem. With the use of shell and sendkeys you can dial to your user. Shell starts windows application and sendkeys inform the WINDOW to dial according to the keystrokes of the application. A MACRO can be used to start the cardfile program which ACTIVATES the AUTO dialer feature.

Shell command present in VBA can be used to start the dialer present in windows operating system. Phone number can be used to connect to your modem. With the use of shell and sendkeys you can dial to your user. Shell starts windows application and sendkeys inform the window to dial according to the keystrokes of the application. A macro can be used to start the cardfile program which activates the auto dialer feature.

46.

How Can We Use Data Validation Function In Vba?

Answer»

Data VALIDATION is an important CONCEPT in VBA. Application procedure and a custom dialog box can be USED to CORRECT input errors. You can assign an application procedure to the frame of a dialog box. Error MESSAGE or custom dialog box can be highlighted with the first field with errors.

Data validation is an important concept in VBA. Application procedure and a custom dialog box can be used to correct input errors. You can assign an application procedure to the frame of a dialog box. Error message or custom dialog box can be highlighted with the first field with errors.

47.

Explain About Insert Module And Goal Seek Functions Present In Vba?

Answer»

The chief USE of VBA is to make use of its special FUNCTION which helps in repeated actions. Goal seek function helps to reduce manual entry of the CODE each and every time. This solves the problem of repeated function entry by automating FUNCTIONS and actions. Sub routines are inserted into the using the VBA editor and COMMAND insert module.

The chief use of VBA is to make use of its special function which helps in repeated actions. Goal seek function helps to reduce manual entry of the code each and every time. This solves the problem of repeated function entry by automating functions and actions. Sub routines are inserted into the using the VBA editor and command insert module.

48.

State Some General Uses For Visual Basic Applications In General Context?

Answer»

Visual BASIC can be used within almost all Microsoft products such as Map point, Visio, Auto cad, Word perfect, ArcGIS, word, EXCEL, ETC. With VBA you can CONTROL many functions such as host application, menus, toolbars, user interface, import and export of files, data transfer and extraction from MULTIPLE interfaces.

Visual basic can be used within almost all Microsoft products such as Map point, Visio, Auto cad, Word perfect, ArcGIS, word, excel, etc. With VBA you can control many functions such as host application, menus, toolbars, user interface, import and export of files, data transfer and extraction from multiple interfaces.

49.

Explain About Function Pointers?

Answer»

VISUAL basic applications have very RICH and flexible applications but there is one limitation when USING pointer function. WINDOWS API has limited support for function pointers because it has the ability to use but not the functional support to call back the function. But later versions have support for modules. Function pointers have inbuilt support (DLL's) for call but not for call back.

Visual basic applications have very rich and flexible applications but there is one limitation when using pointer function. Windows API has limited support for function pointers because it has the ability to use but not the functional support to call back the function. But later versions have support for modules. Function pointers have inbuilt support (DLL's) for call but not for call back.

50.

What Forms Should Be Used For Complex User Input?

Answer»

Userforms should be used for COMPLEX user input. When an application input has non text as an input it is ADVISABLE to use Userforms RATHER than the input boxes. When you are using Userforms a user can give input any number of times which is not the case when you use input boxes. This can be accessible from the INSERT menu in your VBA editor after which you can insert your code.

Userforms should be used for complex user input. When an application input has non text as an input it is advisable to use Userforms rather than the input boxes. When you are using Userforms a user can give input any number of times which is not the case when you use input boxes. This can be accessible from the insert menu in your VBA editor after which you can insert your code.