Wednesday 3 August 2011

Visual Basic Interview Questions

1) Explain what is Visual basic ?
Visual basic is a event driven language from Microsoft for its Component object model programming language. It is associated with integrated development environment of Microsoft. It enables RAD tools and accesses the database using RDO and DAO.

2) Explain about event driven programming language?
Event driven programming language chiefly depends upon the user and sensors (functionalities) implemented by the developer. It is also dependent upon the messages from other programs. Programming is divided into two events one is event selection and the other is event handling.

3) Explain about the basic features of Visual basic?
Primarily visual basic was designed for simplicity. It allows programmers to develop GUI applications and also complex applications. It is much concerned with arranging complex functions to graphical controls onto a form for greater functionality. Default attributes and actions make it easy for programmer to write code.

4) Explain about form creation in visual basic?
Forms are basically created in the form of drag and drop techniques. Predefined tools can be placed on the form which defines the form compatibility. Default values are present in the form which can be changed by the programmer for efficient functionality. Attributes, controls, event handlers, etc can be modified for greater efficiency.

5) Explain about creation of exe files with visual basic?
Visual basic can create EXE files, DLL files, Active x controls, etc. It is primary goal is to create windows applications and desktop applications. Pop up capabilities can be created with the help of Visual Basic for web interface. This has made visual basic primarily useful for creating windows files and advertising files.

6) How can visual basic be used for server side scripting?
Visual basic can be used for server side scripting. A component designed with Visual basic will not have any user interface instead provides the functionality of Active X to other programs via COM. This form of technique allows server side functionality and add in module.

7) Is visual basic case sensitive?
Visual basic is not case sensitive unlike many other programming languages. Visual basic transforms keywords into a standard configuration. Also it matches the case of the entry with the symbol table entry. String comparisons are case sensitive.

8) Explain about arrays?
Arrays are declared in a similar way to Pascal and FORTRAN. They are specified by the upper and lower bonds. Option base statement is also used to set the default lower bond. Lower and upper bonds are programmable.

9) What are the different procedures associated with the object?
There are different procedures associated with the object some of them are Activate, Dblclick, Click, keypress, DragDrop, etc. Every object has its own set of procedures. Object can be selected and code can be written which can module the application in a certain way.

10) Explain about control properties?
Control properties help in determining the appearance and its function characteristics with the event procedure. Certain properties should be written before setting its characteristics for working on application. Actually you should define its appearance. Properties of the controls can be set in the windows at run time.

11) State about the different types of visual basic data?
Visual basic divides into different types they are
1) Numeric data type
2) Non numeric data type
Numeric data is divided into seven different types they are adding, minus, multiplication, division, etc.
Non numeric data consists of data which cannot be manipulated with standard operators.

12) Explain about literals?
Data can be assigned to literals. In certain cases suffix is added so that literals can perform the calculation in a much better way. Strings can have many characters. Sometimes it is enclosed within double quotes.

13) What are the rules which should be followed while naming a variable in VB?
Some of the rules which should be followed while naming a variable in VB are as follows: -
1) Characters should be less than 255.
2) Space between characters should be allowed.
3) A variable should begin with a number.
4) Period may not be permitted.

14) Explain about declaring variables in Visual basic?
A variable should be declared by assigning them name and data type before using them in the code. They are generally declared using the Dim statement in the general section of the codes. In case you forget to define the data type VB will declare it automatically.

15) Explain about conditional operators?
There are many conditional operators which are used to control the program flow. They look like mathematical operators. These operators cannot be neglected because they are very powerful and they let the Visual basic to compare data values for output.

16) Explain about ADO control?
If you want your applications to move out of the Visual Basic environment then it is very important to use ADO control units. Active X data control is the full form for ADO. It is interoperable and could be accessed in many data applications.

17) Explain about creating VB applications in excel?
User defined functions can be created into the Microsoft spreadsheet. Spreadsheets can be customized according to the user needs by using VB applications. To create visual basic functions useful for spreadsheet you need to click Tools and select Macros where you will need to click on Visual basic editor.

0 comments:

Post a Comment

Popular Posts

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls