Midterm 1 Terms from Tutorials Flashcards
what is the “integer” data type?
-integer, whole number used for counting
-2 bytes (16 bits) each
limited to a range of -32,768 to 32,768
what is the “long” data type?
-integer, whole number used for counting
-4 bytes (32 bits), ranges from -2,147,483,648 to 2,147,483,648
which two data types are for integer numbers?
Integer and long
Which two data types are for real numbers?
Single and Double
What is the “single” data type?
-Decimal (or floating-point) number used for measuring
-4 bytes (32 bits)
-approx 7 sig fig of precision
ranges:
-3.40282310^38 to -1.40129810^-45 for negative numbers
1.40129810^-45 to 3.40282310^38 for positive numbers
What is the “double” data type?
-Decimal (or floating-point) number used for measuring
-8 bytes (64 bits)
-approx 15 sig fig of precision
ranges:
-1.7976931348623110^308 to -4.9406564584124710^324 for negative numbers
4.9406564584124710^-324 to 1.7976931348623110^308 for positive numbers
What is character (String) Data?
sequences of characters that can be letters, numbers, punctuation marks, and spaces, all treated as text
-Fixed Length, known upper limit of characters, up to 65,000 characters
-Variable Length, unkown number of characters, up to 2 billion characters
What is logical (boolean) data?
-data that has only two values (True or False, 1 or 0)
-used in IF statements
What is the “Variant” data type?
-assigned automatically by VBA when a variable’s data type is not declared
-VBA reads the data and chooses a type depending on the context
-if the variable is later used to store a different type of data, the variable type is automatically changed by VBA
What are the downsides of the “variant” data type?
-Variant data uses more memory than declared variables
-When VBA encounters Variant data, it slows down to figure out what type it is
-a misspelled variable name is difficult to spot
what is the “Byte” Data type?
smallest numeric data type, 0 to 255, no negative values
what is the “Currency” Data Type?
monetary values from –922,337,203,477.5808 to
922,337,203,685,477.5807
what is the “Date” Data Type?
stores a specially formatted numeric value that represents both the date and
time.