VISUAL BASIC

VISUAL PROGRAMMING

VISUAL BASIC

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The ____ indicates the type of data-for example, numeric or string-the memory location will store.
A
data type
B
variable name
C
literal constant
D
comments
Explanation: 

Detailed explanation-1: -A variable can be thought of as a memory location that can hold values of a specific type. The value in a variable may change during the life of the program-hence the name “variable.” In VBA, each variable has a specific data type, which indicates which type of data it may hold.

Detailed explanation-2: -String (str or text) It is a sequence of characters and the most commonly used data type to store text. Additionally, a string can also include digits and symbols, however, it is always treated as text. A phone number is usually stored as a string (+1-999-666-3333) but can also be stored as an integer (9996663333).

Detailed explanation-3: -The data types NUMERIC, DECIMAL, INTEGER, BIGINT, and SMALLINT are exact numeric types. An integer has a scale of zero, but the syntax simply uses the word INTEGER or the abbreviation INT.

Detailed explanation-4: -Numeric variables are stored as byte, int, long, float or double. Float and double are the two that can hold non-integer numbers (decimals) and are the most common.

There is 1 question to complete.