Type Conversions Flashcards

1
Q

Two (2) types of type conversion

A
  1. Narrowing conversion
  2. Widening conversion
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

An expression with operands that have different data types is called a …

A

mixed-mode expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

An error that occurred when the result of an operation is too large is called …

A

overflow

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

when the result of an operation is too small is called

A

underflow

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