Type Conversions Flashcards
1
Q
Two (2) types of type conversion
A
- Narrowing conversion
- Widening conversion
2
Q
A … converts a value to a type that cannot store even approximations of all the values of the original type
A
Narrowing conversion
3
Q
A … converts a value to a type that can include at least approximations of the values of the original type
A
Widening conversion
4
Q
An expression with operands that have different data types is called a …
A
mixed-mode expression
5
Q
A … is an explicit type conversion, which is performed by placing the desired type in parentheses just before the expression to be converted
A
cast
6
Q
An error that occurred when the result of an operation is too large is called …
A
overflow
7
Q
when the result of an operation is too small is called
A
underflow
8
Q
A