Midterm 1 Terms from Tutorials Flashcards

1
Q

what is the “integer” data type?

A

-integer, whole number used for counting
-2 bytes (16 bits) each
limited to a range of -32,768 to 32,768

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

what is the “long” data type?

A

-integer, whole number used for counting
-4 bytes (32 bits), ranges from -2,147,483,648 to 2,147,483,648

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

which two data types are for integer numbers?

A

Integer and long

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

Which two data types are for real numbers?

A

Single and Double

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

What is the “single” data type?

A

-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

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

What is the “double” data type?

A

-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

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

What is character (String) Data?

A

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

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

What is logical (boolean) data?

A

-data that has only two values (True or False, 1 or 0)
-used in IF statements

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

What is the “Variant” data type?

A

-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

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

What are the downsides of the “variant” data type?

A

-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

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

what is the “Byte” Data type?

A

smallest numeric data type, 0 to 255, no negative values

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

what is the “Currency” Data Type?

A

monetary values from –922,337,203,477.5808 to
922,337,203,685,477.5807

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

what is the “Date” Data Type?

A

stores a specially formatted numeric value that represents both the date and
time.

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