What is another type name for Primitive Types?
Built-in Types
What is another type name for Derived and Abstract Types?
User-defined Types
What are the two main categories of Primitive Types?
Predefined and could be smaller or greater than the current value
Values that are predefined and therefore predictable are said to be what?
Ordinal Types
Values where we cannot determine the next value in the sequence are values of what?
Variable-Length Types
What data types fall under ordinal?
Integer, Character and Boolean/ Int, Char and Bool
What data types fall under variable-length?
Float and Double
What does "signed" mean in C++?
Can store positive and negative numbers.
What does "unsigned" mean in C++?
Can only store positive numbers and zero, doubling the positive range by eliminating the need for bits to represent negative values
What does "short" mean in C++?
Reduces storage size and range of values. Less memory usage, but also less range
What does "long" mean in C++?
Increases storage size and range of values. More memory usage, but also a greater range
True or false: The first character in a variable can be a number
False
True or false: Blank spaces can be used in variable names
False
True or false: Special Characters like "$" are not allowed
True
True or false: When a variable consists of more than one word, the other words start with capital letters.
True
True or false: Constant names are typically written in all capital letters to easily distinguish them from variables
True
Represents any real numberRange: -3.4E+38 to 3.4E+38 (four bytes)
Float
Represents any real numberRange: -1.7E+308 to 1.7E+308 (eight bytes)
Double
Used for characters, letters, digits and special symbols where each character is enclosed in single quotes
Char
Sequence of zero or more characters which are enclosed in double quotation marks
String
A string with no characters
Null
Two values: true and false
Boolean
Are performed automatically by the compiler when it encounters expressions involving different data types
Implicit Conversions
Also known as typecasts, are performed by the programmer to explicitly convert a value from one data type to another
Explicit Conversions