Data Types Flashcards
1
Q
Integer
A
Whole number
Used for values that are counted
2
Q
Floating-Point Number
A
Real number
Decimal point can appear anywhere
Used for things that are measured
3
Q
Floating-Point Literal
A
Number with a fractional part
4
Q
Character
A
Single letter or %
5
Q
String
A
Sequence of characters
6
Q
Boolean
A
Only two possible values
7
Q
Array
A
Ordered list of items (elements) of a given data type
aka Vector
8
Q
Index
A
Each element’s location number in an array
9
Q
Scalar Variable
A
Single-item (non-array) variable
10
Q
Epsilon
A
Difference threshold indicating floating-point numbers are equal
0.0001 is common