## What are Constants

by Dinesh Thakur Category: Variables and Constants

Some variables don’t change value during the execution of program. These are constants that appear many times in your code. The constants are preferred for two reasons :

## How variables are declared in Visual Basic

by Dinesh Thakur Category: Variables and Constants

Variables are used to store values during a program’s execution. So, variables are place values in which you can leave values and recall them at will.

## What effect does the location of a Dim statement has on the variables is declares

by Dinesh Thakur Category: Variables and Constants

1. There are several ways of declaring the variable, the most commonly used statement is Dim statement to declare the variable. The syntax for declaring the variable using Dim is as follows:

## What is Purpose of the Val Function

by Dinesh Thakur Category: Variables and Constants

1. Visual Basic provides number of built in functions. The Val function is one of it. Val function converts the text data into a numeric value.

## Explain Order of Precedence of Operators for Calculations

by Dinesh Thakur Category: Variables and Constants

1. The order in which operator are performed determines the result. Consider the expressions 3 + 4 * 2. Over here if addition is done first, the result is 14. However, if multiplication is done first then result is 11.

## Explain Boolean variable test for True and False. Give example

by Dinesh Thakur Category: Variables and Constants

In Visual Basic there are some controls properties that return you a Boolean value which can be as condition in the testing. For example, option buttons returns true when they are selected and returns you false when they are not.

## Explain purpose of relational operators and logical operator

by Dinesh Thakur Category: Variables and Constants

Relational operators: Relational operators are used for comparison of to variables of same data type. These operators are used in the conditions where two values are compared and true or false is returned according to test result.

## What is the general format of the statement used decisions in an application

by Dinesh Thakur Category: Variables and Constants

1. A power full asset of the computer is its ability to make decisions and to take alternate course of action based on the out come.

## What is the Continuation operator ? When is it used

by Dinesh Thakur Category: Variables and Constants

When a Basic statement become too long for one line , use a line-Continuation

character.You can type a space and an underscore , press Enter, and continue the statement on the next line . It is OK to indent the continued lines.The only restriction is that the line-continuation character must appear between elements; you cannot place a continuation in the middle of a literal or split the name of an object or property.

## Different Looping Constructs in VB

by Dinesh Thakur Category: Decisions and Conditions

Loop statements allow you to execute one or more lines of code repetitively. Visual Basic supports the following loop statements:

## Branching Statements in Visual Basic

by Dinesh Thakur Category: Decisions and Conditions

An application needs a built-in capability to test conditions and take a different course of action depending on the outcome of the test. Visual Basic provides three control flow, or decision, structures :

## difference between step into and step over

by Dinesh Thakur Category: Decisions and Conditions

Step into: Most likely you will use step into command more than you will use step over command.

## Define the term Validation. When is it appropriate to do validation

by Dinesh Thakur Category: Decisions and Conditions

Validation is a form of self protecting; it is better to reject bad data then spend hours trying to find out an error only to discover that the problem was caused by a “user error”.

## What is a message box? Type Of message box

by Dinesh Thakur Category: Decisions and Conditions

A message box is special type of Visual Basic window in which you can display a message to the user. You can display message, an optional icon, a title bar caption, and command buttons in a message box.

## Subroutines and Functions

by Dinesh Thakur Category: Menus Procedure and Function

The code you write won’t be a monolithic listing. It will be made up of small segments called procedures and you will work on one procedure at a time. This is called modularized approach of programming.

## Give the Steps Required to Convert a Project into an .exe File

by Dinesh Thakur Category: Menus Procedure and Function

You can create .exe file of your project which a executable file. In windows after clicking on the .exe file project starts running. The simple steps for creating .exe file are as follows:

## Difference Between ByRef and ByVal. When would each be used

by Dinesh Thakur Category: Menus Procedure and Function

When you pass a value to procedure you may pass it ByVal of ByRef

The ByVal sends a copy of the argument’s value to the procedure cannot alter the original value. ByRef sends a reference indicating where the value is stored in memory, allowing the called procedure to actually change the argument’s original value.

## What is return value? How it can be used

by Dinesh Thakur Category: Menus Procedure and Function

While writing a Function procedure you must set up a return value. This return value is placed in the a variable that Visual Basic names the with the procedure name as function name.

## Difference Between Sub Procedure and Function Procedure

by Dinesh Thakur Category: Menus Procedure and Function

## What does the common dialog box means? Explain types of common dialog boxes

by Dinesh Thakur Category: Menus Procedure and Function

1. You can use set of predefined standard dialog boxes in your projects for such tasks as specifying colors and fonts, printing, opening and saving. The common dialog boxes control, which is a custom control, allows your project to use the dialog boxes that are  provided as a part of the Windows environment.

Page 2 of 5