Lesson 2: Managing Data Flashcards
(15 cards)
What are the two major data types in Visual Basic?
- Numeric Data Type
- Non-numeric Data Type
________data types are types of data that consist of numbers, which can be computed mathematically withvarious standard operators such as add, minus, multiply, divide and so on.
Numeric
These are the example of what data type? your examination marks, your height, your weight, the number of students in a class, share values, price of goods, monthly bills, fees and etc.
Numeric Data Type
Numeric data are divided into 7 types:
- Byte
- Integer
- Long
- Single
- Double
- Currency
- Decimal
________ data types are data that cannot be manipulated mathematically using standard arithmetic operators.
Non-numeric Data Types
These data comprises text or string data types, Date data types, the Boolean data types that store only two values (true or false), Object data type and Variant data type .
Non-numeric
It is a computer memory location where a programmer can temporarily store an item of data while an application is running.
Variable
The memory location is called a ______ because its contents can change (vary) during run time.
Variable
the ____ statement to declare a variable within the procedure that needs it. The statement assigns a name, a data type, and an initial value to the variable.
Dim
______ are different from variables in the sense that their values do not change during the running of the program.
Constants
Code to change the back color?
Color.Form.Argb(RGB coded)
You can always experiment with other combinations but remember the maximum number for each color is ___and the minimum number is 0
255
Before writing an event procedure for the control to response to a user’s input, you have to set ______ ______ for the control to determine its appearance and how it will work with the event procedure.
Certain Properties
What is the code structure for visual basic?
Private Sub…
Statements
End Sub
The syntax to declare a constant is:
Const Constant Name As Data
Type = Value