VB Flashcards

(31 cards)

1
Q

Variable is a

A

Memory location that holds data and can be changed during the execution of a program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Constant?

A

Quantities that do not change during the execution of a program are called constants. If an attempt is made to change the value of a constant during execution, an error will be generated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to declare a variable?

A

Declaration of a variable means specifying its data type. A variable can be declared as:
Dim <varname> As <data></data></varname>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Variable name is also called as

A

An identifier as it identifies a memory location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The amount of memory space required depends on its

A

Data type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a declaration statement?

A

Statement that declares a variable is a declaration statement and it’s a non - executable statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Syntax of declaring a constant

A

Const constname As <data></data>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are intrinsic constants

A

Intrinsic constants are system defined constants or predefined constants these constants need not be declared and can be used directly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Constants starts with the prefix

A

Vb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a default data type?

A

Default data type is called as the variant

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Variant

A

Requires more space in the memory and operates less slowly then other data types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Data types used in VB are

A

Boolean byte currency data double integer long single string and variant

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Integers in the range

A

-32768 to 32767

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a function

A

Function is a code that performs certain actions and returns or gives a value.
To do it’s calculations, a function needs an input, this input is called as the function argument.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The purpose of the val statement of val function

A

The purpose of the valve function is to convert text data into numeric data
Syntax: val(texttoconvert)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Arithmetic operations in which vb

A

Exponential division multiplication addition on and subtraction are the arithmetic operations in vb

17
Q

What do you mean by formatting data

A

Formatting Data means to control the way it will look on the screen or paper

18
Q

The format functions in vb

A

Format currency format number function format percent function format date time function

19
Q

Control structures

A

Control statements are used to control the flow of execution in a program

20
Q

Examples of decision statements

A

If then statement if then else statement if then elseif statement select case statement

21
Q

Example of loop structures

A

Do while loop while wend loop for next loop

22
Q

What is a relational operator

A

A relational operator gives a relation between its operands. Whenever a relational operator is used the result of the operation or expression is either true or false.

23
Q

How many relational operators are there name them

A

6 relational operators
>,<,=,<>,>=,<=

24
Q

The if then statement

A

Execute a set of statements if a given condition is true

25
If then else statement
Executive set of statements if we given condition is true otherwise execute another set of statements
26
The nested if then else statement or if then else if statement
Nested if then else selection structures test for multiple cases by placing if then else selection structures inside if then else structures
27
Can we carry out a numeric comparison on text property
We can carry out a numeric comparison on text property by using the val function
28
What is input validation
Input validation means to check whether the data entered by the user is correct or not. Validation mein include checking whether the data is numeric check that data is in a particular range and check that any field has not been left blank
29
Is numeric function
The is numeric function checks whether its argument is numeric or not. This function returns the value true if it's argument is numeric or else it returns false.
30
What is a loop
Of repeating a set of statements for a specified number of times or until a condition is true is called looping. The group of repeated statements is called a loop.
31
What is an iteration
A single execution of the statements in the loop is called an iteration.